mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +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:
@@ -13,7 +13,7 @@ use execution_layer::{
|
||||
LATEST_TAG, PayloadAttributes, PayloadParameters, PayloadStatus,
|
||||
};
|
||||
use fixed_bytes::FixedBytesExtended;
|
||||
use fork_choice::{ForkchoiceUpdateParameters, PayloadStatus as FcPayloadStatus};
|
||||
use fork_choice::ForkchoiceUpdateParameters;
|
||||
use reqwest::{Client, header::CONTENT_TYPE};
|
||||
use sensitive_url::SensitiveUrl;
|
||||
use serde_json::{Value, json};
|
||||
@@ -294,7 +294,6 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
|
||||
let finalized_block_hash = ExecutionBlockHash::zero();
|
||||
let forkchoice_update_params = ForkchoiceUpdateParameters {
|
||||
head_root,
|
||||
head_payload_status: FcPayloadStatus::Pending,
|
||||
head_hash: Some(parent_hash),
|
||||
justified_hash: Some(justified_block_hash),
|
||||
finalized_hash: Some(finalized_block_hash),
|
||||
|
||||
Reference in New Issue
Block a user