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

simplify broadcast - send to all connected peers #2996

Merged
merged 1 commit into from
Aug 22, 2019

Conversation

antiochp
Copy link
Member

I think based on earlier discussions we decided to simply broadcast to all connected peers.
Related - #2985

This PR simplifies the existing "count" logic and does just that.

We used to broadcast as follows -

  • tx kernels: max connected peers (8 + 128)
  • headers: preferred outbound count (8)
  • compact blocks: max connected peers (8 + 128)

This is all simplified to just iterate over the connected peers and broadcast to all of them.

The major difference here is we now send headers to many more peers than we used to.
But this was discussed and there is no reason why we should limit this to 8 peers.

There will be an increase in network traffic for new blocks (more headers broadcast) but this should intuitively keep the network healthier as blocks should propagate faster like this.

@antiochp antiochp self-assigned this Aug 21, 2019
@antiochp antiochp merged commit d06b56c into mimblewimble:master Aug 22, 2019
@antiochp antiochp deleted the broadcast_all_peers branch August 22, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants