cmd/geth: Added optional debug flag for reprocess block

This commit is contained in:
obscuren 2015-06-11 11:44:39 +02:00
parent 5cfae0536f
commit 9e9bd35557
1 changed files with 5 additions and 2 deletions

View File

@ -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)