Skip to content

Unlimited backlog when bootstrapping#4922

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:bootstrap-increase-backlog
Jul 5, 2025
Merged

Unlimited backlog when bootstrapping#4922
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:bootstrap-increase-backlog

Conversation

@pwojcikdev
Copy link
Copy Markdown
Contributor

@pwojcikdev pwojcikdev commented Jun 27, 2025

Adding bounded backlog significantly decreased bootstrap performance due to the fixed 100k limit for unconfirmed blocks. This fixe limit reduces effectiveness of optimistic elections. This PR introduces a heuristic to dynamically increase the bounded backlog limit until the configured bootstrap block count is reached.
One caveat with this approach is that over time, the live network block count will drift from the preconfigured count (as of V28, it is 207107949).

@pwojcikdev pwojcikdev force-pushed the bootstrap-increase-backlog branch from 493b4a6 to 262dd95 Compare June 27, 2025 11:55
@gr0vity-dev-bot
Copy link
Copy Markdown

gr0vity-dev-bot commented Jun 27, 2025

Test Results for Commit e275c26

Pull Request 4922: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 113s)
  • 5n4pr_conf_10k_change: PASS (Duration: 165s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 116s)
  • 5n4pr_conf_change_independant: PASS (Duration: 146s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 116s)
  • 5n4pr_conf_send_independant: PASS (Duration: 117s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 109s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 154s)

Last updated: 2025-06-28 09:46:17 UTC

@pwojcikdev pwojcikdev force-pushed the bootstrap-increase-backlog branch from 262dd95 to e275c26 Compare June 28, 2025 08:52
@pwojcikdev pwojcikdev merged commit 36d628e into nanocurrency:develop Jul 5, 2025
26 checks passed
pwojcikdev added a commit that referenced this pull request Jul 8, 2025
# Conflicts:
#	nano/secure/ledger.cpp
@qwahzi qwahzi added this to the V29 milestone Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants