cmd/geth: skip removal of transactions

This commit is contained in:
Jeffrey Wilcke 2016-05-13 09:49:19 +02:00
parent 0952a44eba
commit 187aca4bb6

View file

@ -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)
}
}