mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 02:12:33 +00:00
Merge branch 'gloas-block-and-bid-production' into gloas-devnet-0
This commit is contained in:
@@ -670,15 +670,26 @@ pub fn post_validator_prepare_beacon_proposer<T: BeaconChainTypes>(
|
||||
)
|
||||
.await;
|
||||
|
||||
chain
|
||||
.prepare_beacon_proposer(current_slot)
|
||||
.await
|
||||
.map_err(|e| {
|
||||
warp_utils::reject::custom_bad_request(format!(
|
||||
"error updating proposer preparations: {:?}",
|
||||
e
|
||||
))
|
||||
})?;
|
||||
// TODO(gloas): verify this is correct. We skip proposer preparation for
|
||||
// GLOAS because the execution payload is no longer embedded in the beacon
|
||||
// block (it's in the payload envelope), so the head block's
|
||||
// execution_payload() is unavailable.
|
||||
let next_slot = current_slot + 1;
|
||||
if !chain
|
||||
.spec
|
||||
.fork_name_at_slot::<T::EthSpec>(next_slot)
|
||||
.gloas_enabled()
|
||||
{
|
||||
chain
|
||||
.prepare_beacon_proposer(current_slot)
|
||||
.await
|
||||
.map_err(|e| {
|
||||
warp_utils::reject::custom_bad_request(format!(
|
||||
"error updating proposer preparations: {:?}",
|
||||
e
|
||||
))
|
||||
})?;
|
||||
}
|
||||
|
||||
if chain.spec.is_peer_das_scheduled() {
|
||||
let (finalized_beacon_state, _, _) =
|
||||
|
||||
Reference in New Issue
Block a user