mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core: improve Gas accessor
This commit is contained in:
parent
359171f2b0
commit
04f173ed72
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue