mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
Implemented counting of usedGas
This commit is contained in:
parent
97cc762143
commit
e090d131c3
@ -140,6 +140,9 @@ func (sm *StateManager) ApplyTransactions(state *State, block *Block, txs []*Tra
|
|||||||
validTxs = append(validTxs, tx)
|
validTxs = append(validTxs, tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the total gas used for the block (to be mined)
|
||||||
|
block.GasUsed = totalUsedGas
|
||||||
|
|
||||||
return receipts, validTxs
|
return receipts, validTxs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user