Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions beacon_node/execution_layer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ impl ProposerPreparationDataEntry {
}
}

// NOTE: This key should arguably include the `suggested_fee_recipient`, as it is part of the
// `Proposer::payload_attributes` value that is cached based on it. However, in some cases where
// this key is constructed the fee recipient is not straight-forward to determine. Therefore we
// accept the risk of loading a stale fee recipient within the timespan of a single slot.
#[derive(Hash, PartialEq, Eq)]
pub struct ProposerKey {
slot: Slot,
Expand Down
15 changes: 2 additions & 13 deletions beacon_node/http_api/src/validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,26 +666,15 @@ pub fn post_validator_register_validator<T: BeaconChainTypes>(
.unzip();

// Update the prepare beacon proposer cache based on this request.
// This data will get picked up by the next scheduled run of
// `prepare_beacon_proposer`.
execution_layer
.update_proposer_preparation(
current_epoch,
preparation_data.iter().map(|(data, limit)| (data, limit)),
)
.await;

// Call prepare beacon proposer blocking with the latest update in order to make
// sure we have a local payload to fall back to in the event of the blinded block
// flow failing.
chain
.prepare_beacon_proposer(current_slot)
.await
.map_err(|e| {
warp_utils::reject::custom_bad_request(format!(
"error updating proposer preparations: {:?}",
e
))
})?;

info!(
count = filtered_registration_data.len(),
"Forwarding register validator request to connected builder"
Expand Down
Loading