Add new field

This commit is contained in:
Eitan Seri-Levi
2026-04-30 11:20:50 +02:00
parent 87dee4bd23
commit 71fb4c7346
30 changed files with 449 additions and 246 deletions

View File

@@ -150,16 +150,16 @@ pub fn verify_execution_payload_envelope<E: EthSpec>(
// Verify consistency with the committed bid
let committed_bid = state.latest_execution_payload_bid()?;
envelope_verify!(
envelope.builder_index == committed_bid.builder_index,
envelope.builder_index == committed_bid.builder_index(),
EnvelopeProcessingError::BuilderIndexMismatch {
committed_bid: committed_bid.builder_index,
committed_bid: committed_bid.builder_index(),
envelope: envelope.builder_index,
}
);
envelope_verify!(
committed_bid.prev_randao == payload.prev_randao,
committed_bid.prev_randao() == payload.prev_randao,
EnvelopeProcessingError::PrevRandaoMismatch {
committed_bid: committed_bid.prev_randao,
committed_bid: committed_bid.prev_randao(),
envelope: payload.prev_randao,
}
);
@@ -183,18 +183,18 @@ pub fn verify_execution_payload_envelope<E: EthSpec>(
// Verify the gas limit
envelope_verify!(
committed_bid.gas_limit == payload.gas_limit,
committed_bid.gas_limit() == payload.gas_limit,
EnvelopeProcessingError::GasLimitMismatch {
committed_bid: committed_bid.gas_limit,
committed_bid: committed_bid.gas_limit(),
envelope: payload.gas_limit,
}
);
// Verify the block hash
envelope_verify!(
committed_bid.block_hash == payload.block_hash,
committed_bid.block_hash() == payload.block_hash,
EnvelopeProcessingError::BlockHashMismatch {
committed_bid: committed_bid.block_hash,
committed_bid: committed_bid.block_hash(),
envelope: payload.block_hash,
}
);
@@ -221,9 +221,9 @@ pub fn verify_execution_payload_envelope<E: EthSpec>(
// Verify execution requests root matches committed bid
let execution_requests_root = envelope.execution_requests.tree_hash_root();
envelope_verify!(
execution_requests_root == committed_bid.execution_requests_root,
execution_requests_root == committed_bid.execution_requests_root(),
EnvelopeProcessingError::ExecutionRequestsRootMismatch {
committed_bid: committed_bid.execution_requests_root,
committed_bid: committed_bid.execution_requests_root(),
envelope: execution_requests_root,
}
);