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

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

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

siladu
Copy link
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

Copy link

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
@siladu siladu marked this pull request as ready for review January 23, 2024 03:56
Signed-off-by: Simon Dudley <[email protected]>
Copy link
Member

@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

@siladu siladu mentioned this pull request Jan 23, 2024
@siladu siladu merged commit b90d0ed into hyperledger:main Jan 23, 2024
18 checks passed
@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