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

triedb: do not open state freezer under notries #2359

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

weiihann
Copy link
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
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
7 checks passed
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.

None yet

3 participants