diff options
author | Yusup <awklsgrep@gmail.com> | 2018-04-04 18:25:02 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-04 18:25:02 +0800 |
commit | 7aad81f8815084c8ed032705fbaf6d3710e518cf (patch) | |
tree | a79cccc5f2040ac2ec496ca18e7381390c30fbc7 /eth/db_upgrade.go | |
parent | 2a4bd55b43df92fe2f83468656ca03199596bceb (diff) | |
download | go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.gz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.bz2 go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.lz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.xz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.zst go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.zip |
eth: fix typos (#16414)
Diffstat (limited to 'eth/db_upgrade.go')
-rw-r--r-- | eth/db_upgrade.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/db_upgrade.go b/eth/db_upgrade.go index d41afa17c..96c584ac6 100644 --- a/eth/db_upgrade.go +++ b/eth/db_upgrade.go @@ -62,7 +62,7 @@ func upgradeDeduplicateData(db ethdb.Database) func() error { failed error ) for failed == nil && it.Next() { - // Skip any entries that don't look like old transaction meta entires (<hash>0x01) + // Skip any entries that don't look like old transaction meta entries (<hash>0x01) key := it.Key() if len(key) != common.HashLength+1 || key[common.HashLength] != 0x01 { continue @@ -86,7 +86,7 @@ func upgradeDeduplicateData(db ethdb.Database) func() error { } } // Convert the old metadata to a new lookup entry, delete duplicate data - if failed = db.Put(append([]byte("l"), hash...), it.Value()); failed == nil { // Write the new looku entry + if failed = db.Put(append([]byte("l"), hash...), it.Value()); failed == nil { // Write the new lookup entry if failed = db.Delete(hash); failed == nil { // Delete the duplicate transaction data if failed = db.Delete(append([]byte("receipts-"), hash...)); failed == nil { // Delete the duplicate receipt data if failed = db.Delete(key); failed != nil { // Delete the old transaction metadata |