Re-do head_payload_status

This commit is contained in:
Michael Sproul
2026-03-25 14:05:11 +11:00
parent c841603003
commit 8b448864f0
18 changed files with 143 additions and 119 deletions

View File

@@ -12,7 +12,7 @@ use eth2::{
BeaconNodeHttpClient, CONSENSUS_VERSION_HEADER, CONTENT_TYPE_HEADER, SSZ_CONTENT_TYPE_HEADER,
Timeouts,
};
use fork_choice::ForkchoiceUpdateParameters;
use fork_choice::{ForkchoiceUpdateParameters, PayloadStatus as FcPayloadStatus};
use parking_lot::RwLock;
use sensitive_url::SensitiveUrl;
use ssz::Encode;
@@ -934,6 +934,7 @@ impl<E: EthSpec> MockBuilder<E> {
finalized_hash: Some(finalized_execution_hash),
justified_hash: Some(justified_execution_hash),
head_root: head_block_root,
head_payload_status: FcPayloadStatus::Pending,
};
let _status = self

View File

@@ -92,6 +92,7 @@ impl<E: EthSpec> MockExecutionLayer<E> {
let head_block_root = Hash256::repeat_byte(42);
let forkchoice_update_params = ForkchoiceUpdateParameters {
head_root: head_block_root,
head_payload_status: fork_choice::PayloadStatus::Pending,
head_hash: Some(parent_hash),
justified_hash: None,
finalized_hash: None,