Skip to content

Reuse --bonsai-historical-block-limit for limit trie logs feature#6445

Merged
siladu merged 5 commits intobesu-eth:mainfrom
siladu:reuse-bonsai-historical-block-limit
Jan 23, 2024
Merged

Reuse --bonsai-historical-block-limit for limit trie logs feature#6445
siladu merged 5 commits intobesu-eth:mainfrom
siladu:reuse-bonsai-historical-block-limit

Conversation

@siladu
Copy link
Copy Markdown
Contributor

@siladu siladu commented Jan 22, 2024

Part of #5390

  • $BESU --Xbonsai-limit-trie-logs-enabled=true will use the default value of --bonsai-historical-block-limit=512
  • $BESU --Xbonsai-limit-trie-logs-enabled=true --bonsai-historical-block-limit=511 throws error as must be >= 512
  • $BESU --Xbonsai-limit-trie-logs-enabled=false --bonsai-historical-block-limit=511 does not throw error as this is allowed until limit-trie-logs-enabled.

This implementation avoids a breaking change for anyone that has a node with --bonsai-historical-block-limit already set to < 512 (could be noone?)

However, we should be aware that if --Xbonsai-limit-trie-logs-enabled ever becomes default then this breaking change will come back again

…etention-threshold

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 22, 2024

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@siladu siladu added the TeamGroot GH issues worked on by Groot Team label Jan 22, 2024
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu marked this pull request as ready for review January 23, 2024 03:56
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Copy link
Copy Markdown
Contributor

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu mentioned this pull request Jan 23, 2024
@siladu siladu merged commit b90d0ed into besu-eth:main Jan 23, 2024
@siladu siladu deleted the reuse-bonsai-historical-block-limit branch January 23, 2024 06:11
@siladu siladu changed the title Reuse --bonsai-historical-block-limit for trie log pruning Reuse --bonsai-historical-block-limit for limit trie logs feature Jan 23, 2024
@fab-10 fab-10 mentioned this pull request Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TeamGroot GH issues worked on by Groot Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants