From 04f173ed72d2bd7d0aee72a6ce31351694903072 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 27 Oct 2023 16:09:55 +0200 Subject: [PATCH] core: improve Gas accessor --- 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 8b140c2a7a..daea498e9f 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.header.GasLimit - b.header.GasUsed + return b.gasPool.Gas() } // Signer returns a valid signer instance for the current block.