Skip to content

Commit

Permalink
remove block v3 fallback to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Nov 24, 2023
1 parent ad978f6 commit 13942bf
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions validator_client/src/block_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,36 +359,13 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {

match result {
Ok(_) => {}
Err(BlockError::Recoverable(e)) => {
Err(BlockError::Recoverable(e)) | Err(BlockError::Irrecoverable(e)) => {
error!(
log,
"Error whilst producing block";
"error" => ?e,
"block_slot" => ?slot,
"info" => "block v3 proposal failed, attempting full block v2"
);
if let Err(e) = service
.publish_block::<FullPayload<E>>(slot, validator_pubkey)
.await
{
// Log a `crit` since a full block v2
// (non-builder) proposal failed.
crit!(
log,
"Error whilst producing block";
"error" => ?e,
"block_slot" => ?slot,
"info" => "full block v2 attempted after a block v3 failure",
);
}
}
Err(BlockError::Irrecoverable(e)) => {
error!(
log,
"Error whilst producing block";
"error" => ?e,
"block_slot" => ?slot,
"info" => "this error may or may not result in a missed block",
"info" => "block v3 proposal failed, this error may or may not result in a missed block"
);
}
}
Expand Down

0 comments on commit 13942bf

Please sign in to comment.