diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 06:17:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 06:17:50 +0800 |
commit | 5ceb1620e93e1999c6f72e6164c7c65af63244ec (patch) | |
tree | e3185f8202dd3f3ebd065be5a1ea7e7ba08e6055 /ethchain/vm.go | |
parent | e8b45852952138ac24dada1a70480d31d0886c27 (diff) | |
download | go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.gz go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.bz2 go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.lz go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.xz go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.tar.zst go-tangerine-5ceb1620e93e1999c6f72e6164c7c65af63244ec.zip |
Fixed couple issues
* (imp) Lock / RLock tries
* (fix) stack
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r-- | ethchain/vm.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go index e732d22a4..9be38fcc1 100644 --- a/ethchain/vm.go +++ b/ethchain/vm.go @@ -390,10 +390,12 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro require(1) loc := stack.Pop() val := closure.GetMem(loc) + //fmt.Println("get", val.BigInt(), "@", loc) stack.Push(val.BigInt()) case oSSTORE: require(2) val, loc := stack.Popn() + //fmt.Println("storing", val, "@", loc) closure.SetStorage(loc, ethutil.NewValue(val)) // Add the change to manifest |