Resolve merge conflicts

This commit is contained in:
Eitan Seri-Levi
2026-06-17 16:55:37 +03:00
108 changed files with 2768 additions and 1018 deletions

View File

@@ -132,6 +132,15 @@ pub enum Operation {
#[serde(default)]
proposer_boost_root: Option<Hash256>,
},
/// Assert the result of `should_build_on_full` for the parent `block_root`, where
/// `parent_payload_status` is the status the proposer would build on and `proposal_slot`
/// is the slot being proposed.
AssertShouldBuildOnFull {
block_root: Hash256,
parent_payload_status: PayloadStatus,
proposal_slot: Slot,
expected: bool,
},
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -329,6 +338,7 @@ impl ForkChoiceTestDefinition {
execution_payload_parent_hash,
execution_payload_block_hash,
proposer_index: Some(0),
payload_received: false,
};
fork_choice
.process_block::<MainnetEthSpec>(block, slot, &spec, Duration::ZERO)
@@ -629,6 +639,30 @@ impl ForkChoiceTestDefinition {
assert_eq!(
actual, expected,
"latest_parent_full_block mismatch at op index {}",
op_index,
);
}
Operation::AssertShouldBuildOnFull {
block_root,
parent_payload_status,
proposal_slot,
expected,
} => {
let actual = fork_choice
.should_build_on_full::<MainnetEthSpec>(
&block_root,
parent_payload_status,
proposal_slot,
)
.unwrap_or_else(|e| {
panic!(
"should_build_on_full op at index {} returned error: {}",
op_index, e
)
});
assert_eq!(
actual, expected,
"should_build_on_full mismatch at op index {}",
op_index
);
}