Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): reduce block messages with many connections #6602

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Oct 4, 2024

Description

fix(core): reduce block messages with many connections

Motivation and Context

When a seed node is connected to many hundreds of base node peers, it propagates blocks on all connections.
This PR changes this to send to 20 random peers. Default propagation_factor is changed from 4 to 20.

How Has This Been Tested?

What process can a PR reviewer use to test or verify this change?

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Copy link

github-actions bot commented Oct 4, 2024

Test Results (CI)

    3 files    129 suites   37m 26s ⏱️
1 325 tests 1 325 ✅ 0 💤 0 ❌
3 973 runs  3 973 ✅ 0 💤 0 ❌

Results for commit 6054a99.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 4, 2024
@sdbondi sdbondi marked this pull request as ready for review October 4, 2024 06:04
@sdbondi sdbondi requested a review from a team as a code owner October 4, 2024 06:04
Copy link

github-actions bot commented Oct 4, 2024

Test Results (Integration tests)

36 tests  +36   36 ✅ +36   15m 21s ⏱️ + 15m 21s
11 suites +11    0 💤 ± 0 
 2 files   + 2    0 ❌ ± 0 

Results for commit 6054a99. ± Comparison against base commit 5bcddf4.

Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one of those changes we made to make the small networks work better, but its detrimental to bigger ones

@SWvheerden SWvheerden merged commit b7c8810 into tari-project:development Oct 4, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants