This commit is contained in:
hopinheimer
2026-03-16 07:00:51 -04:00
parent 0df749f0a2
commit 916d9fb018
5 changed files with 50 additions and 23 deletions

View File

@@ -91,6 +91,7 @@ pub enum Operation {
AssertHeadPayloadStatus {
head_root: Hash256,
expected_status: PayloadStatus,
current_slot: Slot,
},
SetPayloadTiebreak {
block_root: Hash256,
@@ -456,9 +457,13 @@ impl ForkChoiceTestDefinition {
Operation::AssertHeadPayloadStatus {
head_root,
expected_status,
current_slot,
} => {
let actual = fork_choice
.head_payload_status::<MainnetEthSpec>(&head_root)
.head_payload_status::<MainnetEthSpec>(
&head_root,
current_slot,
)
.unwrap_or_else(|| {
panic!(
"AssertHeadPayloadStatus: head root not found at op index {}",