mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 03:12:41 +00:00
Merge branch 'eip4844' into deneb-free-blobs
This commit is contained in:
@@ -856,7 +856,6 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
| Err(e @ BlockError::WeakSubjectivityConflict)
|
||||
| Err(e @ BlockError::InconsistentFork(_))
|
||||
| Err(e @ BlockError::ExecutionPayloadError(_))
|
||||
// TODO(merge): reconsider peer scoring for this event.
|
||||
| Err(e @ BlockError::ParentExecutionPayloadInvalid { .. })
|
||||
| Err(e @ BlockError::GenesisBlock) => {
|
||||
warn!(self.log, "Could not verify block for gossip. Rejecting the block";
|
||||
@@ -869,7 +868,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
);
|
||||
return None;
|
||||
}
|
||||
Err(e@ BlockError::BlobValidation(_)) => {
|
||||
Err(e @ BlockError::BlobValidation(_)) => {
|
||||
warn!(self.log, "Could not verify blob for gossip. Rejecting the block and blob";
|
||||
"error" => %e);
|
||||
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject);
|
||||
|
||||
@@ -528,6 +528,21 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
})
|
||||
}
|
||||
}
|
||||
ref err @ BlockError::ParentExecutionPayloadInvalid { ref parent_root } => {
|
||||
warn!(
|
||||
self.log,
|
||||
"Failed to sync chain built on invalid parent";
|
||||
"parent_root" => ?parent_root,
|
||||
"advice" => "check execution node for corruption then restart it and Lighthouse",
|
||||
);
|
||||
Err(ChainSegmentFailed {
|
||||
message: format!("Peer sent invalid block. Reason: {err:?}"),
|
||||
// We need to penalise harshly in case this represents an actual attack. In case
|
||||
// of a faulty EL it will usually require manual intervention to fix anyway, so
|
||||
// it's not too bad if we drop most of our peers.
|
||||
peer_action: Some(PeerAction::LowToleranceError),
|
||||
})
|
||||
}
|
||||
other => {
|
||||
debug!(
|
||||
self.log, "Invalid block received";
|
||||
|
||||
Reference in New Issue
Block a user