mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 06:48:27 +00:00
Re-do head_payload_status
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user