Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

[beta] Avoid re-broadcasting transactions on each block #4047

Merged
merged 3 commits into from
Jan 6, 2017
Merged

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Jan 5, 2017

Currently 1.4.x is re-broadcasting all transactions after each block is imported.
That's not nice to other peers and may cause excessive traffic.

Related: #4007, #3996, #3358

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Jan 5, 2017
@tomusdrw tomusdrw added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 5, 2017
@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Jan 5, 2017
@gavofyork
Copy link
Contributor

we probably want to rebroadcast from time to time, though; transactions not getting through at all is a showstopper.

@tomusdrw
Copy link
Collaborator Author

tomusdrw commented Jan 5, 2017

Maybe we can randomly choose few (0-2) peers that we'll rebroadcast the transactions to on each block?

@gavofyork
Copy link
Contributor

separate PR for the backport of random subset or not?

@tomusdrw
Copy link
Collaborator Author

tomusdrw commented Jan 5, 2017

I think it will be easier to backport #4054 separately.

@gavofyork gavofyork merged commit a7ed6f6 into beta Jan 6, 2017
@gavofyork gavofyork deleted the beta-txfix branch January 6, 2017 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants