diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-25 17:29:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-25 17:29:42 +0800 |
commit | 3f904bf3acb5779f68834ebca95825ea1990f85b (patch) | |
tree | 80bd348f7948d1f932fc88a7320093f31800d67c /ethchain | |
parent | cdbc3ecc2a738a4b8803c40dfc510fd099ce8584 (diff) | |
download | dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.gz dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.bz2 dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.lz dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.xz dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.zst dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.zip |
Implemented POST
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_transition.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index 80f9fda5e..1c7eae675 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -278,6 +278,15 @@ func (self *StateTransition) Eval(msg *ethstate.Message, script []byte, context ret, _, err = callerClosure.Call(vm, self.tx.Data) + if err == nil { + // Execute POSTs + for e := vm.Queue().Front(); e != nil; e = e.Next() { + msg := e.Value.(*ethvm.Message) + + msg.Exec(transactor) + } + } + return } |