mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
This commit is contained in:
parent
54cd4589f0
commit
486d4cae73
1 changed files with 4 additions and 0 deletions
|
|
@ -589,6 +589,7 @@ type BlockOverrides struct {
|
||||||
GasLimit *hexutil.Uint64
|
GasLimit *hexutil.Uint64
|
||||||
Coinbase *common.Address
|
Coinbase *common.Address
|
||||||
Random *common.Hash
|
Random *common.Hash
|
||||||
|
BaseFee *hexutil.Big
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply overrides the given header fields into the given block context.
|
// 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 {
|
if diff.Random != nil {
|
||||||
blockCtx.Random = diff.Random
|
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) {
|
func (s *BlockChainAPI) GetBlockSignersByHash(ctx context.Context, blockHash common.Hash) ([]common.Address, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue