diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-11 17:40:40 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-11 17:40:40 +0800 |
commit | e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659 (patch) | |
tree | 60a54c983ae7be4933161e1cc57fd2644d89f602 /ethchain | |
parent | 97cc76214350b3ef9b0c15f53d06c684e01ede37 (diff) | |
download | go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.gz go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.bz2 go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.lz go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.xz go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.zst go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.zip |
Implemented counting of usedGas
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index aea5433ff..6fb664e3d 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -140,6 +140,9 @@ func (sm *StateManager) ApplyTransactions(state *State, block *Block, txs []*Tra validTxs = append(validTxs, tx) } + // Update the total gas used for the block (to be mined) + block.GasUsed = totalUsedGas + return receipts, validTxs } |