Skip to content

Commit

Permalink
Ignore gossip blob already imported (sigp#5656)
Browse files Browse the repository at this point in the history
* Ignore gossip blob already imported
  • Loading branch information
dapplion authored Apr 29, 2024
1 parent 8b24880 commit 40d4126
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions beacon_node/network/src/network_beacon_processor/gossip_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,24 +778,28 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
"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) => {
debug!(
self.log,
"Invalid gossip blob";
"outcome" => ?err,
"block root" => ?block_root,
"block slot" => blob_slot,
"blob index" => blob_index,
"block_root" => ?block_root,
"block_slot" => blob_slot,
"blob_index" => blob_index,
);
self.gossip_penalize_peer(
peer_id,
PeerAction::MidToleranceError,
"bad_gossip_blob_ssz",
);
trace!(
self.log,
"Invalid gossip blob ssz";
);
}
}
}
Expand Down

0 comments on commit 40d4126

Please sign in to comment.