diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-23 19:06:45 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-23 19:06:45 +0800 |
commit | c67cdab22162792f40cb366cbf12960c306aa835 (patch) | |
tree | ac220944d05ff384b8d3c79a56c709b705fbac05 /ethereal/ui/debugger.go | |
parent | d060ae6a368bb880132e548c58b33e2508adc125 (diff) | |
parent | 2408e38218d81c567bdaa4671a542a20c55490b9 (diff) | |
download | dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar.gz dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar.bz2 dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar.lz dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar.xz dexon-c67cdab22162792f40cb366cbf12960c306aa835.tar.zst dexon-c67cdab22162792f40cb366cbf12960c306aa835.zip |
merge upstream
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r-- | ethereal/ui/debugger.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go index 919407b34..9d60c7587 100644 --- a/ethereal/ui/debugger.go +++ b/ethereal/ui/debugger.go @@ -78,7 +78,6 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data var err error script := ethutil.StringToByteFunc(scriptStr, func(s string) (ret []byte) { ret, err = ethutil.Compile(s) - fmt.Printf("%x\n", ret) return }) @@ -110,14 +109,16 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data block := self.lib.eth.BlockChain().CurrentBlock vm := ethchain.NewVm(state, self.lib.eth.StateManager(), ethchain.RuntimeVars{ + Block: block, Origin: account.Address(), - BlockNumber: block.BlockInfo().Number, + BlockNumber: block.Number, PrevHash: block.PrevHash, Coinbase: block.Coinbase, Time: block.Time, Diff: block.Difficulty, Value: ethutil.Big(valueStr), }) + vm.Verbose = true self.Db.done = false self.Logf("callsize %d", len(script)) |