diff options
Diffstat (limited to 'core/block_manager.go')
-rw-r--r-- | core/block_manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/block_manager.go b/core/block_manager.go index 7cb9c4208..85b4891a5 100644 --- a/core/block_manager.go +++ b/core/block_manager.go @@ -109,11 +109,11 @@ done: // If we are mining this block and validating we want to set the logs back to 0 state.EmptyLogs() - txGas := new(big.Int).Set(tx.Gas) + txGas := new(big.Int).Set(tx.Gas()) cb := state.GetStateObject(coinbase.Address()) st := NewStateTransition(cb, tx, state, block) - err = st.TransitionState() + _, err = st.TransitionState() if err != nil { switch { case IsNonceErr(err): @@ -132,7 +132,7 @@ done: } txGas.Sub(txGas, st.gas) - cumulativeSum.Add(cumulativeSum, new(big.Int).Mul(txGas, tx.GasPrice)) + cumulativeSum.Add(cumulativeSum, new(big.Int).Mul(txGas, tx.GasPrice())) // Update the state with pending changes state.Update(txGas) |