From c983208c54bdb3432e55b682ec28a9696b6cc038 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 27 Oct 2023 16:40:53 +0200 Subject: [PATCH] core: revert Gas change --- core/chain_makers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chain_makers.go b/core/chain_makers.go index 188e38b521..0799f6606f 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -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.