-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cmd, core: resolve scheme from a read-write database and refactor resolveChainFreezerDir func #2155
Conversation
* cmd, core: resolve scheme from a read-write database * cmd, core, eth: move the scheme check in the ethereum constructor * cmd/geth: dump should in ro mode * cmd: reverts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, same as #2135
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
After this pr is merged, 48Club needs to use new release version to run geth. Because current PBSS snapshot is incorrect, there is no state directory in ancient directory. Use new version to generate state directory. |
thank you for everything! |
Description
This pull request solves four pull requests: #2110, #2131, #2141, #2146
This issue can occur when unclean shutdown happens and freezer tables need to be repair. In database read-only mode, the freezer will only be validated but not repair and terminates the node abnormally.
This pull request moves the scheme check into the Ethereum constructor where the read-write database is already initialized. This approach can avoid opening read-only database in very early stage, to prevent this error totally.
Current geth doesn't deal with chain freezer dir in a good way. Therefore, this pr refactors
resolveChainFreezerDir
to fix in pruned and non-pruned mode.Rationale
These will influence how should users use
pruenancient
mode that block data could be replaced in which.Example
N/A
Changes
Notable changes: