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

Incremental backoff for local_block_broadcaster #4662

Merged

Conversation

pwojcikdev
Copy link
Contributor

@pwojcikdev pwojcikdev commented Jun 29, 2024

This implements incremental backoff for block rebroadcasting. Previously block rebroadcasts happened every 60 seconds. This changes it, so that early on rebroadcasts happen more frequently, with 3 second interval increase. Ie. first rebroadcast happens after 3 seconds, second after 9, third after 18 etc.

Additionally there are improvements that were necessary to implement the above: avoiding unnecessary locking and config cleanup.

@qwahzi qwahzi added this to the V27 milestone Jul 1, 2024
gr0vity-dev pushed a commit to gr0vity-dev/nano-node that referenced this pull request Jul 2, 2024
gr0vity-dev pushed a commit to gr0vity-dev/nano-node that referenced this pull request Jul 2, 2024
@clemahieu
Copy link
Contributor

Minor question about the max size but otherwise LGTM.

@pwojcikdev pwojcikdev merged commit 873db29 into nanocurrency:develop Jul 3, 2024
26 of 28 checks passed
@pwojcikdev pwojcikdev deleted the aggressive-block-broadcasts branch July 3, 2024 09:36
@pwojcikdev pwojcikdev restored the aggressive-block-broadcasts branch July 3, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

3 participants