Re-issue ForkchoiceUpdate based on updated PayloadStatus (#9102)

Co-Authored-By: hopinheimer <knmanas6@gmail.com>

Co-Authored-By: Michael Sproul <michael@sigmaprime.io>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This commit is contained in:
hopinheimer
2026-04-25 04:04:09 -04:00
committed by GitHub
parent 8a384ff445
commit df764ffa9a
14 changed files with 808 additions and 41 deletions

View File

@@ -200,6 +200,9 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
pub async fn perform_tests(&self) {
self.wait_until_synced().await;
// TODO(gloas): this needs to be for post-Gloas cases
let head_payload_status = fork_choice::PayloadStatus::Pending;
// Create a local signer in case we need to sign transactions locally
let private_key_signer: PrivateKeySigner =
PRIVATE_KEYS[0].parse().expect("Invalid private key");
@@ -308,6 +311,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
.insert_proposer(
Slot::new(1), // Insert proposer for the next slot
head_root,
fork_choice::PayloadStatus::Pending,
proposer_index,
PayloadAttributes::new(
timestamp,
@@ -332,6 +336,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
Slot::new(0),
Hash256::zero(),
head_payload_status,
)
.await
.unwrap();
@@ -411,6 +416,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
slot,
head_block_root,
head_payload_status,
)
.await
.unwrap();
@@ -452,6 +458,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
slot,
head_block_root,
head_payload_status,
)
.await
.unwrap();
@@ -587,7 +594,13 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
let validator_index = 0;
self.ee_a
.execution_layer
.insert_proposer(slot, head_block_root, validator_index, payload_attributes)
.insert_proposer(
slot,
head_block_root,
head_payload_status,
validator_index,
payload_attributes,
)
.await;
let status = self
.ee_a
@@ -598,6 +611,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
slot,
head_block_root,
head_payload_status,
)
.await
.unwrap();
@@ -635,6 +649,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
slot,
head_block_root,
head_payload_status,
)
.await
.unwrap();
@@ -688,6 +703,7 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
finalized_block_hash,
slot,
head_block_root,
head_payload_status,
)
.await
.unwrap();