aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
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/state_manager.go
parent97cc76214350b3ef9b0c15f53d06c684e01ede37 (diff)
downloaddexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.gz
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.bz2
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.lz
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.xz
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.tar.zst
dexon-e090d131c38bef3c5f2d0f5e9fa28f5d0ed06659.zip
Implemented counting of usedGas
Diffstat (limited to 'ethchain/state_manager.go')
-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
}