Gloas alpha spec 8 (#9315)

https://github.com/ethereum/consensus-specs/releases/tag/v1.7.0-alpha.8


  


Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>

Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
Eitan Seri-Levi
2026-05-21 23:21:20 -07:00
committed by GitHub
parent b5d5644eeb
commit 60abd4b5b9
36 changed files with 863 additions and 243 deletions

View File

@@ -101,6 +101,17 @@ impl TestContext {
root: Hash256::ZERO,
};
// Set a non-zero gas_limit on latest_execution_payload_bid so the gas limit
// compatibility check doesn't reject all bids at genesis.
if let Ok(bid) = state.latest_execution_payload_bid_mut() {
bid.gas_limit = 30_000_000;
}
// Update body_root to reflect the modified bid (genesis block embeds it).
let genesis_body_root = genesis_block(&state, &spec)
.expect("should build genesis block")
.body_root();
state.latest_block_header_mut().body_root = genesis_body_root;
let inactive_keypair = &keypairs[NUM_BUILDERS];
let inactive_creds = builder_withdrawal_credentials(&inactive_keypair.pk, &spec);
let inactive_builder_index = state
@@ -248,7 +259,7 @@ fn make_signed_preferences(
proposal_slot: Slot,
validator_index: u64,
fee_recipient: Address,
gas_limit: u64,
target_gas_limit: u64,
) -> Arc<SignedProposerPreferences> {
Arc::new(SignedProposerPreferences {
message: ProposerPreferences {
@@ -256,7 +267,7 @@ fn make_signed_preferences(
proposal_slot,
validator_index,
fee_recipient,
gas_limit,
target_gas_limit,
},
signature: Signature::empty(),
})