cmd/geth: improve

This commit is contained in:
Gary Rong 2024-03-20 10:06:04 +08:00
parent 0fc2593bd6
commit 7f6d884201

View file

@ -862,7 +862,7 @@ func inspectHistory(ctx *cli.Context) error {
if slot == (common.Hash{}) { if slot == (common.Hash{}) {
fmt.Printf("Account history:\n\taddress: %s\n\tblockrange: [#%d-#%d]\n", address.Hex(), stats.Start, stats.End) fmt.Printf("Account history:\n\taddress: %s\n\tblockrange: [#%d-#%d]\n", address.Hex(), stats.Start, stats.End)
} else { } else {
fmt.Printf("Storage history:\n\taddress: %s\n\tslot: %s\nblockrange: [#%d-#%d]\n", address.Hex(), slot.Hex(), stats.Start, stats.End) fmt.Printf("Storage history:\n\taddress: %s\n\tslot: %s\n\tblockrange: [#%d-#%d]\n", address.Hex(), slot.Hex(), stats.Start, stats.End)
} }
fmt.Printf("\nThe output shows block number where account/slot was modified, along with the _old_ rlp-encoded value\n") fmt.Printf("\nThe output shows block number where account/slot was modified, along with the _old_ rlp-encoded value\n")
for i := 0; i < len(stats.Blocks); i++ { for i := 0; i < len(stats.Blocks); i++ {