Implemented counting of usedGas

pull/150/head
Maran 11 years ago
parent 97cc762143
commit e090d131c3
  1. 3
      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
}

Loading…
Cancel
Save