mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Ignore gossip blob already imported (#5656)
* Ignore gossip blob already imported
This commit is contained in:
@@ -778,24 +778,28 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
|||||||
"block_root" => %block_root,
|
"block_root" => %block_root,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Err(BlockError::BlockIsAlreadyKnown(_)) => {
|
||||||
|
debug!(
|
||||||
|
self.log,
|
||||||
|
"Ignoring gossip blob already imported";
|
||||||
|
"block_root" => ?block_root,
|
||||||
|
"blob_index" => blob_index,
|
||||||
|
);
|
||||||
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
debug!(
|
debug!(
|
||||||
self.log,
|
self.log,
|
||||||
"Invalid gossip blob";
|
"Invalid gossip blob";
|
||||||
"outcome" => ?err,
|
"outcome" => ?err,
|
||||||
"block root" => ?block_root,
|
"block_root" => ?block_root,
|
||||||
"block slot" => blob_slot,
|
"block_slot" => blob_slot,
|
||||||
"blob index" => blob_index,
|
"blob_index" => blob_index,
|
||||||
);
|
);
|
||||||
self.gossip_penalize_peer(
|
self.gossip_penalize_peer(
|
||||||
peer_id,
|
peer_id,
|
||||||
PeerAction::MidToleranceError,
|
PeerAction::MidToleranceError,
|
||||||
"bad_gossip_blob_ssz",
|
"bad_gossip_blob_ssz",
|
||||||
);
|
);
|
||||||
trace!(
|
|
||||||
self.log,
|
|
||||||
"Invalid gossip blob ssz";
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user