diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-14 01:12:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-14 01:12:12 +0800 |
commit | 20d518ee959f1621a5accf1f3432282a6c0d6c3c (patch) | |
tree | c1c9dcd1e2ced349d11edeca7d2ef179b092fc9b /chain/state_transition.go | |
parent | 60cdb1148c404218846fd39331690658168f4e04 (diff) | |
download | dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar.gz dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar.bz2 dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar.lz dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar.xz dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.tar.zst dexon-20d518ee959f1621a5accf1f3432282a6c0d6c3c.zip |
Numerous fixes for consensus.
* Removed (buged) C++ specific gas specification for LOG*
* Fixed LOG* where mstart went after msize
*
Diffstat (limited to 'chain/state_transition.go')
-rw-r--r-- | chain/state_transition.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chain/state_transition.go b/chain/state_transition.go index c208a9188..afe044299 100644 --- a/chain/state_transition.go +++ b/chain/state_transition.go @@ -231,6 +231,31 @@ func (self *StateTransition) TransitionState() (err error) { } } + /* + * XXX The following _should_ replace the above transaction + * execution (also for regular calls. Will replace / test next + * phase + */ + /* + // Execute transaction + if tx.CreatesContract() { + self.rec = MakeContract(tx, self.state) + } + + address := self.Receiver().Address() + evm := vm.New(NewEnv(state, self.tx, self.block), vm.DebugVmTy) + exe := NewExecution(evm, address, self.tx.Data, self.gas, self.gas.Price, self.tx.Value) + ret, err := msg.Exec(address, self.Sender()) + if err != nil { + statelogger.Debugln(err) + } else { + if tx.CreatesContract() { + self.Receiver().Code = ret + } + msg.Output = ret + } + */ + // Add default LOG. Default = big(sender.addr) + 1 //addr := ethutil.BigD(receiver.Address()) //self.state.AddLog(&state.Log{ethutil.U256(addr.Add(addr, ethutil.Big1)).Bytes(), [][]byte{sender.Address()}, nil}) |