mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Lower tolerance of stale blobs on gossip (#5935)
* Lower tolerance of stale blobs on gossip * Drop to debug
This commit is contained in:
@@ -700,7 +700,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
|||||||
"index" => %index,
|
"index" => %index,
|
||||||
"commitment" => %commitment,
|
"commitment" => %commitment,
|
||||||
);
|
);
|
||||||
// Prevent recurring behaviour by penalizing the peer slightly.
|
// Prevent recurring behaviour by penalizing the peer.
|
||||||
self.gossip_penalize_peer(
|
self.gossip_penalize_peer(
|
||||||
peer_id,
|
peer_id,
|
||||||
PeerAction::LowToleranceError,
|
PeerAction::LowToleranceError,
|
||||||
@@ -712,10 +712,8 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
|||||||
MessageAcceptance::Reject,
|
MessageAcceptance::Reject,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
GossipBlobError::FutureSlot { .. }
|
GossipBlobError::FutureSlot { .. } | GossipBlobError::RepeatBlob { .. } => {
|
||||||
| GossipBlobError::RepeatBlob { .. }
|
debug!(
|
||||||
| GossipBlobError::PastFinalizedSlot { .. } => {
|
|
||||||
warn!(
|
|
||||||
self.log,
|
self.log,
|
||||||
"Could not verify blob sidecar for gossip. Ignoring the blob sidecar";
|
"Could not verify blob sidecar for gossip. Ignoring the blob sidecar";
|
||||||
"error" => ?err,
|
"error" => ?err,
|
||||||
@@ -736,6 +734,30 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
|||||||
MessageAcceptance::Ignore,
|
MessageAcceptance::Ignore,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
GossipBlobError::PastFinalizedSlot { .. } => {
|
||||||
|
debug!(
|
||||||
|
self.log,
|
||||||
|
"Could not verify blob sidecar for gossip. Ignoring the blob sidecar";
|
||||||
|
"error" => ?err,
|
||||||
|
"slot" => %slot,
|
||||||
|
"root" => %root,
|
||||||
|
"index" => %index,
|
||||||
|
"commitment" => %commitment,
|
||||||
|
);
|
||||||
|
// Prevent recurring behaviour by penalizing the peer. A low-tolerance
|
||||||
|
// error is fine because there's no reason for peers to be propagating old
|
||||||
|
// blobs on gossip, even if their view of finality is lagging.
|
||||||
|
self.gossip_penalize_peer(
|
||||||
|
peer_id,
|
||||||
|
PeerAction::LowToleranceError,
|
||||||
|
"gossip_blob_low",
|
||||||
|
);
|
||||||
|
self.propagate_validation_result(
|
||||||
|
message_id,
|
||||||
|
peer_id,
|
||||||
|
MessageAcceptance::Ignore,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user