mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
add prevrandao to result
This commit is contained in:
parent
7e17e4cf3a
commit
fe3bb832bf
1 changed files with 4 additions and 0 deletions
|
|
@ -1193,6 +1193,7 @@ type blockResult struct {
|
|||
GasUsed hexutil.Uint64 `json:"gasUsed"`
|
||||
FeeRecipient common.Address `json:"feeRecipient"`
|
||||
BaseFee *hexutil.Big `json:"baseFeePerGas"`
|
||||
PrevRandao common.Hash `json:"prevRandao"`
|
||||
Calls []callResult `json:"calls"`
|
||||
}
|
||||
|
||||
|
|
@ -1275,6 +1276,9 @@ func (s *BlockChainAPI) MulticallV1(ctx context.Context, opts multicallOpts, blo
|
|||
BaseFee: (*hexutil.Big)(blockContext.BaseFee),
|
||||
Calls: make([]callResult, len(block.Calls)),
|
||||
}
|
||||
if blockContext.Random != nil {
|
||||
results[bi].PrevRandao = *blockContext.Random
|
||||
}
|
||||
gasUsed := uint64(0)
|
||||
for i, call := range block.Calls {
|
||||
vmConfig := &vm.Config{
|
||||
|
|
|
|||
Loading…
Reference in a new issue