Skip to content

triedb: do not open state freezer under notries#2359

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
weiihann:develop/fix-no-tires
Apr 2, 2024
Merged

triedb: do not open state freezer under notries#2359
zzzckck merged 1 commit intobnb-chain:developfrom
weiihann:develop/fix-no-tires

Conversation

@weiihann
Copy link
Copy Markdown
Contributor

@weiihann weiihann commented Apr 1, 2024

Description

This PR fixes a bug on v1.4.x BSC version where a pruned fast node cannot be initialized properly.

Rationale

State freezer is introduced in PBSS. When a full node is converted to a fast node (i.e. via prune state), state freezer is no longer needed. However, the current implementation still opens a state freezer even though it's a fast node, which immediately throws an error and causes the node to not be able to start at all. This fix adds a rule such that if the configuration states that NoTries = true, then the node doesn't need to open the state freezer.

Copy link
Copy Markdown
Contributor

@fynnss fynnss left a comment

Choose a reason for hiding this comment

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

LGTM

@zzzckck zzzckck merged commit 75a03f4 into bnb-chain:develop Apr 2, 2024
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