Fixed coinbase copy in state

This commit is contained in:
obscuren
2014-07-17 14:53:27 +02:00
parent ed3424ff75
commit 0415e4a637
5 changed files with 29 additions and 19 deletions

View File

@ -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 {