aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 06:17:50 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 06:17:50 +0800
commit5ceb1620e93e1999c6f72e6164c7c65af63244ec (patch)
treee3185f8202dd3f3ebd065be5a1ea7e7ba08e6055 /ethchain/vm.go
parente8b45852952138ac24dada1a70480d31d0886c27 (diff)
downloadgo-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.go2
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