mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
cmd/geth: address comment
This commit is contained in:
parent
b6db26b01b
commit
0fc2593bd6
1 changed files with 3 additions and 3 deletions
|
|
@ -860,11 +860,11 @@ func inspectHistory(ctx *cli.Context) error {
|
|||
}
|
||||
// Print out the result.
|
||||
if slot == (common.Hash{}) {
|
||||
fmt.Printf("Account history:\n\taddress: %s\n", address.Hex())
|
||||
fmt.Printf("Account history:\n\taddress: %s\n\tblockrange: [#%d-#%d]\n", address.Hex(), stats.Start, stats.End)
|
||||
} else {
|
||||
fmt.Printf("Storage history:\n\taddress: %s\n\tslot: %s\n", address.Hex(), slot.Hex())
|
||||
fmt.Printf("Storage history:\n\taddress: %s\n\tslot: %s\nblockrange: [#%d-#%d]\n", address.Hex(), slot.Hex(), stats.Start, stats.End)
|
||||
}
|
||||
fmt.Printf("Range: [#%d-#%d]\n\n", stats.Start, stats.End)
|
||||
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++ {
|
||||
fmt.Printf("#%d: %#x\n", stats.Blocks[i], stats.Origins[i])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue