Skip to content

fix: v1.3.1-beta cannot start with --pruneancient=true#1986

Merged
brilliant-lx merged 1 commit intobnb-chain:developfrom
weiihann:debug-pruneancient
Nov 14, 2023
Merged

fix: v1.3.1-beta cannot start with --pruneancient=true#1986
brilliant-lx merged 1 commit intobnb-chain:developfrom
weiihann:debug-pruneancient

Conversation

@weiihann
Copy link
Copy Markdown
Contributor

Description

Fix the node unable to start issue if --pruneancient=true by creating a non-read-only database.

Refer to #1984 and #1982.

Rationale

When initializing a readonly database, it will attempt to open a freezer file for read only (refer to code here). Since ancient files are pruned and no longer exist, the read file operation will fail and return error.

Example

Refer to #1984 and #1982.

Changes

Create a non-read-only database if --pruneancient=true.

@tangzhiwei429
Copy link
Copy Markdown

i got this issue also

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.

5 participants