core: revert Gas change

This commit is contained in:
Felix Lange 2023-10-27 16:40:53 +02:00
parent 9783cbb995
commit c983208c54

View file

@ -186,7 +186,7 @@ func (b *BlockGen) BaseFee() *big.Int {
// Gas returns the amount of gas left in the current block.
func (b *BlockGen) Gas() uint64 {
return b.gasPool.Gas()
return b.header.GasLimit - b.header.GasUsed
}
// Signer returns a valid signer instance for the current block.