mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Gloas add off protocol payment field to bid (#8596)
Co-Authored-By: shane-moore <skm1790@gmail.com>
This commit is contained in:
@@ -70,7 +70,10 @@ pub fn upgrade_state_to_gloas<E: EthSpec>(
|
|||||||
current_sync_committee: pre.current_sync_committee.clone(),
|
current_sync_committee: pre.current_sync_committee.clone(),
|
||||||
next_sync_committee: pre.next_sync_committee.clone(),
|
next_sync_committee: pre.next_sync_committee.clone(),
|
||||||
// Execution Bid
|
// Execution Bid
|
||||||
latest_execution_payload_bid: ExecutionPayloadBid::default(),
|
latest_execution_payload_bid: ExecutionPayloadBid {
|
||||||
|
block_hash: pre.latest_execution_payload_header.block_hash,
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
// Capella
|
// Capella
|
||||||
next_withdrawal_index: pre.next_withdrawal_index,
|
next_withdrawal_index: pre.next_withdrawal_index,
|
||||||
next_withdrawal_validator_index: pre.next_withdrawal_validator_index,
|
next_withdrawal_validator_index: pre.next_withdrawal_validator_index,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ pub struct ExecutionPayloadBid {
|
|||||||
pub parent_block_hash: ExecutionBlockHash,
|
pub parent_block_hash: ExecutionBlockHash,
|
||||||
pub parent_block_root: Hash256,
|
pub parent_block_root: Hash256,
|
||||||
pub block_hash: ExecutionBlockHash,
|
pub block_hash: ExecutionBlockHash,
|
||||||
|
pub prev_randao: Hash256,
|
||||||
#[serde(with = "serde_utils::address_hex")]
|
#[serde(with = "serde_utils::address_hex")]
|
||||||
pub fee_recipient: Address,
|
pub fee_recipient: Address,
|
||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
@@ -27,6 +28,8 @@ pub struct ExecutionPayloadBid {
|
|||||||
pub slot: Slot,
|
pub slot: Slot,
|
||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
pub value: u64,
|
pub value: u64,
|
||||||
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
|
pub execution_payment: u64,
|
||||||
pub blob_kzg_commitments_root: Hash256,
|
pub blob_kzg_commitments_root: Hash256,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user