diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-11 17:44:39 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-11 17:44:39 +0800 |
commit | 9e9bd3555789f069b6cb1950fe329d307f951eab (patch) | |
tree | 71585285f746da17abcd5f98c0a22264094a5b96 /cmd/geth | |
parent | 5cfae0536f8499634c2fa2eba9a71fec1c0d417b (diff) | |
download | dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar.gz dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar.bz2 dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar.lz dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar.xz dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.tar.zst dexon-9e9bd3555789f069b6cb1950fe329d307f951eab.zip |
cmd/geth: Added optional debug flag for reprocess block
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/admin.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go index 13d10de32..b0b4e0954 100644 --- a/cmd/geth/admin.go +++ b/cmd/geth/admin.go @@ -271,9 +271,12 @@ func (js *jsre) debugBlock(call otto.FunctionCall) otto.Value { } tstart := time.Now() - old := vm.Debug - vm.Debug = true + + if len(call.ArgumentList) > 1 { + vm.Debug, _ = call.Argument(1).ToBoolean() + } + _, err = js.ethereum.BlockProcessor().RetryProcess(block) if err != nil { fmt.Println(err) |