From 9deda7ff72c4850596f0518926c540f06a5cb590 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 20 Mar 2024 21:05:04 +0800 Subject: [PATCH] cmd/geth: fix output --- cmd/geth/dbcmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/geth/dbcmd.go b/cmd/geth/dbcmd.go index 8fe1abc76d..908f52e36a 100644 --- a/cmd/geth/dbcmd.go +++ b/cmd/geth/dbcmd.go @@ -817,7 +817,7 @@ func inspectAccount(db *triedb.Database, start uint64, end uint64, address commo content = fmt.Sprintf("nonce: %d, balance: %d, code: %s, root: %s", account.Nonce, account.Balance, code, root) } } - fmt.Printf("#%d - #%d: %s\n", from, stats.Blocks[i]-1, content) + fmt.Printf("#%d - #%d: %s\n", from, stats.Blocks[i], content) from = stats.Blocks[i] } return nil @@ -850,7 +850,7 @@ func inspectStorage(db *triedb.Database, start uint64, end uint64, address commo content = fmt.Sprintf("#%x", data) } } - fmt.Printf("#%d - #%d: %s\n", from, stats.Blocks[i]-1, content) + fmt.Printf("#%d - #%d: %s\n", from, stats.Blocks[i], content) from = stats.Blocks[i] } return nil