diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-06 15:53:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-06 15:53:12 +0800 |
commit | 852d1ee395feabaa0e72265106374a0df197db9a (patch) | |
tree | 2700d53ad6d5d415e2d91c7b71b1e23ba95e4602 /ethereum/flags.go | |
parent | 3c319f93f2a0e66bc131cfa1e81be840b3242182 (diff) | |
download | go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar.gz go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar.bz2 go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar.lz go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar.xz go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.tar.zst go-tangerine-852d1ee395feabaa0e72265106374a0df197db9a.zip |
State dumps
Diffstat (limited to 'ethereum/flags.go')
-rw-r--r-- | ethereum/flags.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ethereum/flags.go b/ethereum/flags.go index 4f59ddf06..5ed208411 100644 --- a/ethereum/flags.go +++ b/ethereum/flags.go @@ -3,10 +3,11 @@ package main import ( "flag" "fmt" - "github.com/ethereum/eth-go/ethlog" "os" "os/user" "path" + + "github.com/ethereum/eth-go/ethlog" ) var Identifier string @@ -31,6 +32,9 @@ var LogFile string var ConfigFile string var DebugFile string var LogLevel int +var Dump bool +var DumpHash string +var DumpNumber int // flags specific to cli client var StartMining bool @@ -71,6 +75,10 @@ func Init() { flag.BoolVar(&DiffTool, "difftool", false, "creates output for diff'ing. Sets LogLevel=0") flag.StringVar(&DiffType, "diff", "all", "sets the level of diff output [vm, all]. Has no effect if difftool=false") + flag.BoolVar(&Dump, "dump", false, "output the ethereum state in JSON format. Sub args [number, hash]") + flag.StringVar(&DumpHash, "hash", "", "specify arg in hex") + flag.IntVar(&DumpNumber, "number", -1, "specify arg in number") + flag.BoolVar(&StartMining, "mine", false, "start dagger mining") flag.BoolVar(&StartJsConsole, "js", false, "launches javascript console") |