Merge pull request #1228 from obscuren/vm-optimisations

core/vm: optimisations
This commit is contained in:
Jeffrey Wilcke
2015-06-11 03:32:39 -07:00
16 changed files with 199 additions and 158 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)