mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
engine API alpha.5 field renaming (#3174)
This commit is contained in:
parent
b05734f610
commit
d93a279565
@ -44,9 +44,9 @@ type
|
||||
# https://github.com/ethereum/consensus-specs/blob/v1.1.3/specs/merge/beacon-chain.md#executionpayload
|
||||
ExecutionPayload* = object
|
||||
parent_hash*: Eth2Digest
|
||||
coinbase*: ExecutionAddress # 'beneficiary' in the yellow paper
|
||||
feeRecipient*: ExecutionAddress # 'beneficiary' in the yellow paper
|
||||
state_root*: Eth2Digest
|
||||
receipt_root*: Eth2Digest # 'receipts root' in the yellow paper
|
||||
receipts_root*: Eth2Digest # 'receipts root' in the yellow paper
|
||||
logs_bloom*: BloomLogs
|
||||
random*: Eth2Digest # 'difficulty' in the yellow paper
|
||||
block_number*: uint64 # 'number' in the yellow paper
|
||||
@ -63,9 +63,9 @@ type
|
||||
# https://github.com/ethereum/consensus-specs/blob/v1.1.0-beta.4/specs/merge/beacon-chain.md#executionpayloadheader
|
||||
ExecutionPayloadHeader* = object
|
||||
parent_hash*: Eth2Digest
|
||||
coinbase*: ExecutionAddress
|
||||
feeRecipient*: ExecutionAddress
|
||||
state_root*: Eth2Digest
|
||||
receipt_root*: Eth2Digest
|
||||
receipts_root*: Eth2Digest
|
||||
logs_bloom*: BloomLogs
|
||||
random*: Eth2Digest
|
||||
block_number*: uint64
|
||||
|
@ -513,9 +513,9 @@ proc process_execution_payload*(
|
||||
# Cache execution payload header
|
||||
state.latest_execution_payload_header = ExecutionPayloadHeader(
|
||||
parent_hash: payload.parent_hash,
|
||||
coinbase: payload.coinbase,
|
||||
feeRecipient: payload.feeRecipient,
|
||||
state_root: payload.state_root,
|
||||
receipt_root: payload.receipt_root,
|
||||
receipts_root: payload.receipts_root,
|
||||
logs_bloom: payload.logs_bloom,
|
||||
random: payload.random,
|
||||
block_number: payload.block_number,
|
||||
|
@ -55,7 +55,7 @@ func build_empty_execution_payload(state: merge.BeaconState): ExecutionPayload =
|
||||
var payload = ExecutionPayload(
|
||||
parent_hash: latest.block_hash,
|
||||
state_root: latest.state_root, # no changes to the state
|
||||
receipt_root: Eth2Digest(data: cast[array[32, uint8]](
|
||||
receipts_root: Eth2Digest(data: cast[array[32, uint8]](
|
||||
"no receipts here\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")),
|
||||
block_number: latest.block_number + 1,
|
||||
random: randao_mix,
|
||||
|
Loading…
x
Reference in New Issue
Block a user