mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
cmd/geth: skip removal of transactions
This commit is contained in:
parent
0952a44eba
commit
187aca4bb6
1 changed files with 3 additions and 1 deletions
|
|
@ -177,7 +177,9 @@ func pruneDB(ctx *cli.Context) {
|
|||
iter := chain.NewIterator()
|
||||
for iter.Next() {
|
||||
key := iter.Key()
|
||||
if len(key) == 32 {
|
||||
|
||||
has, _ := chain.LDB().Has(append(key, 0x01), nil)
|
||||
if len(key) == 32 && !has {
|
||||
chain.Delete(key)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue