internal/ethapi: add basefee to block overrides #25219 (#1583)

Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
This commit is contained in:
Daniel Liu 2025-10-08 12:31:36 +08:00 committed by GitHub
parent 54cd4589f0
commit 486d4cae73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -589,6 +589,7 @@ type BlockOverrides struct {
GasLimit *hexutil.Uint64
Coinbase *common.Address
Random *common.Hash
BaseFee *hexutil.Big
}
// Apply overrides the given header fields into the given block context.
@ -614,6 +615,9 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
if diff.Random != nil {
blockCtx.Random = diff.Random
}
if diff.BaseFee != nil {
blockCtx.BaseFee = diff.BaseFee.ToInt()
}
}
func (s *BlockChainAPI) GetBlockSignersByHash(ctx context.Context, blockHash common.Hash) ([]common.Address, error) {