Skip to content

Commit

Permalink
fix: delete unexpected block (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Jul 8, 2024
1 parent a5810fe commit bc970e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/rawdb/prunedfreezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ func (f *prunedfreezer) freeze() {
log.Error("Append ancient err", "number", f.frozen, "hash", hash, "err", err)
break
}
if hash != (common.Hash{}) {
ancients = append(ancients, hash)
}
// may include common.Hash{}, will be delete in gcKvStore
ancients = append(ancients, hash)
}
// Batch of blocks have been frozen, flush them before wiping from leveldb
if err := f.Sync(); err != nil {
Expand Down

0 comments on commit bc970e5

Please sign in to comment.