Skip to content

Incremental backoff for local_block_broadcaster#4662

Merged
pwojcikdev merged 8 commits intonanocurrency:developfrom
pwojcikdev:aggressive-block-broadcasts
Jul 3, 2024
Merged

Incremental backoff for local_block_broadcaster#4662
pwojcikdev merged 8 commits intonanocurrency:developfrom
pwojcikdev:aggressive-block-broadcasts

Conversation

@pwojcikdev
Copy link
Copy Markdown
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.

@pwojcikdev pwojcikdev force-pushed the aggressive-block-broadcasts branch from 78cfbc3 to 42f03b1 Compare June 29, 2024 17:36
@pwojcikdev pwojcikdev force-pushed the aggressive-block-broadcasts branch from 42f03b1 to dbb1751 Compare June 29, 2024 17:43
@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
Copy Markdown
Contributor

Minor question about the max size but otherwise LGTM.

@pwojcikdev pwojcikdev merged commit 873db29 into nanocurrency:develop Jul 3, 2024
@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