mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 14:58:31 +00:00
Remove head_payload_status from ForkchoiceUpdateParameters
head_payload_status is internal fork choice state, not an EL forkchoiceUpdated parameter. It already lives on CachedHead — source it directly from get_head() return in recompute_head_at_slot instead of threading through ForkchoiceUpdateParameters. Also add TODO(gloas) for parent_head_hash in re-org path (V29 nodes don't carry execution_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, PayloadStatus as FcPayloadStatus};
|
||||
use fork_choice::ForkchoiceUpdateParameters;
|
||||
use parking_lot::RwLock;
|
||||
use sensitive_url::SensitiveUrl;
|
||||
use ssz::Encode;
|
||||
@@ -934,7 +934,6 @@ 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,7 +92,6 @@ 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