Issue Details
- Number
- 30138
- Title
- LevelDB error: Corruption: block checksum mismatch didn't trigger reindex.
- Description
- ### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current behaviour
For the past 29 hours, it's been stuck trying to sync:
>**Number of blocks left** Unknown. Syncing Headers (843771, 100.0%)…
and
>Connecting to peers…
I'm also pruning (`prune=550`).
### Expected behaviour
It should sync the full chain and reindex if needed, not try to sync what it can't (due to possibly corrupt chainstate DB).
### Steps to reproduce
Open up `bitcoin-qt`. It doesn't say I need to reindex, but everything else works. It connects to many peers, but very little date (<25 KB) is transferred between each of them.
### Relevant log output
```
2024-05-16T22:38:54Z Writing 0 unbroadcast transactions to disk.
2024-05-16T22:38:54Z Dumped mempool: 0.055s to copy, 2.286s to dump
2024-05-16T22:38:54Z Flushed fee estimates to fee_estimates.dat.
2024-05-16T22:38:54Z Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
2024-05-16T22:38:54Z You can use -debug=leveldb to get more complete diagnostic messages
2024-05-16T22:38:54Z *** System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
2024-05-16T22:38:54Z Error: A fatal internal error occurred, see debug.log for details
2024-05-16T22:38:54Z ForceFlushStateToDisk: failed to flush state (System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb)
2024-05-16T22:38:54Z Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
2024-05-16T22:38:54Z You can use -debug=leveldb to get more complete diagnostic messages
2024-05-16T22:38:54Z *** System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
2024-05-16T22:38:54Z Error: A fatal internal error occurred, see debug.log for details
2024-05-16T22:38:54Z ForceFlushStateToDisk: failed to flush state (System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb)
2024-05-16T22:38:54Z [default wallet] Releasing wallet
2024-05-16T22:38:54Z Shutdown: done
```
### How did you obtain Bitcoin Core
Compiled from source
### What version of Bitcoin Core are you using?
v27.0
### Operating system and version
slackware64-current
### Machine specifications
_No response_
- URL
-
https://github.com/bitcoin/bitcoin/issue/30138
- Closed by
-
Back to List