Skip to content

Commit 723074e

Browse files
committed
dump
1 parent e429e26 commit 723074e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ethereum/flags.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func Init() {
7474
flag.IntVar(&LogLevel, "loglevel", int(ethlog.InfoLevel), "loglevel: 0-5: silent,error,warn,info,debug,debug detail)")
7575
flag.BoolVar(&DiffTool, "difftool", false, "creates output for diff'ing. Sets LogLevel=0")
7676
flag.StringVar(&DiffType, "diff", "all", "sets the level of diff output [vm, all]. Has no effect if difftool=false")
77+
flag.BoolVar(&ShowGenesis, "genesis", false, "Dump the genesis block")
7778

7879
flag.BoolVar(&Dump, "dump", false, "output the ethereum state in JSON format. Sub args [number, hash]")
7980
flag.StringVar(&DumpHash, "hash", "", "specify arg in hex")

ethereum/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ func main() {
7676
os.Exit(1)
7777
}
7878

79+
fmt.Printf("RLP: %x\nstate: %x\nhash: %x\n", ethutil.Rlp(block), block.GetRoot(), block.Hash())
80+
7981
// Leave the Println. This needs clean output for piping
8082
fmt.Printf("%s\n", block.State().Dump())
8183

0 commit comments

Comments
 (0)