Skip to content

core: fix history pruning initialization for empty DB #31656

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Apr 16, 2025

This fixes an issue where running geth with --history.chain postmerge would not work on an empty database.

ERROR[04-16|23:11:12.913] Chain history database is pruned to unknown block tail=0
Fatal: Failed to register the Ethereum service: unexpected database tail

This fixes an issue where running geth with --history.chain postmerge
would not work on an empty database.
@fjl fjl added this to the 1.15.9 milestone Apr 16, 2025
@fjl fjl requested a review from rjl493456442 as a code owner April 16, 2025 21:15
@rjl493456442 rjl493456442 merged commit cb21177 into ethereum:master Apr 17, 2025
3 of 4 checks passed
sivaratrisrinivas pushed a commit to sivaratrisrinivas/go-ethereum that referenced this pull request Apr 21, 2025
This fixes an issue where running geth with `--history.chain postmerge`
would not work on an empty database.

```
ERROR[04-16|23:11:12.913] Chain history database is pruned to unknown block tail=0
Fatal: Failed to register the Ethereum service: unexpected database tail
```
0g-wh pushed a commit to 0glabs/0g-geth that referenced this pull request Apr 22, 2025
This fixes an issue where running geth with `--history.chain postmerge`
would not work on an empty database.

```
ERROR[04-16|23:11:12.913] Chain history database is pruned to unknown block tail=0
Fatal: Failed to register the Ethereum service: unexpected database tail
```
0g-wh pushed a commit to 0g-wh/0g-geth that referenced this pull request May 8, 2025
This fixes an issue where running geth with `--history.chain postmerge`
would not work on an empty database.

```
ERROR[04-16|23:11:12.913] Chain history database is pruned to unknown block tail=0
Fatal: Failed to register the Ethereum service: unexpected database tail
```
Rampex1 pushed a commit to streamingfast/go-ethereum that referenced this pull request May 15, 2025
This fixes an issue where running geth with `--history.chain postmerge`
would not work on an empty database.

```
ERROR[04-16|23:11:12.913] Chain history database is pruned to unknown block tail=0
Fatal: Failed to register the Ethereum service: unexpected database tail
```
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.

2 participants