diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-17 20:53:27 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-17 20:53:27 +0800 |
commit | 0415e4a637296539e7a5c09282b7aee19268e599 (patch) | |
tree | c403eac0c3d4cda7aef003bba658f7b39881cdb5 /ethchain/state_manager.go | |
parent | ed3424ff75b396360990725afc124326dea4ab45 (diff) | |
download | go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar.gz go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar.bz2 go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar.lz go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar.xz go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.tar.zst go-tangerine-0415e4a637296539e7a5c09282b7aee19268e599.zip |
Fixed coinbase copy in state
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index a0568c4cd..0d4b8ac55 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -120,7 +120,9 @@ func (self *StateManager) ProcessTransactions(coinbase *StateObject, state *Stat done: for i, tx := range txs { txGas := new(big.Int).Set(tx.Gas) - st := NewStateTransition(coinbase, tx, state, block) + + cb := state.GetStateObject(coinbase.Address()) + st := NewStateTransition(cb, tx, state, block) //fmt.Printf("#%d\n", i+1) err = st.TransitionState() if err != nil { |