aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-11 17:40:40 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-11 17:40:40 +0800
commite090d131c38bef3c5f2d0f5e9fa28f5d0ed06659 (patch)
tree60a54c983ae7be4933161e1cc57fd2644d89f602 /ethchain
parent97cc76214350b3ef9b0c15f53d06c684e01ede37 (diff)
downloadgo-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.gz
go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.zst
go-tangerine-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.zip
Implemented counting of usedGas
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state_manager.go3
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
}