Skip to content

Commit 40d4126

Browse files
authored
Ignore gossip blob already imported (#5656)
* Ignore gossip blob already imported
1 parent 8b24880 commit 40d4126

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

beacon_node/network/src/network_beacon_processor/gossip_methods.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -778,24 +778,28 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
778778
"block_root" => %block_root,
779779
);
780780
}
781+
Err(BlockError::BlockIsAlreadyKnown(_)) => {
782+
debug!(
783+
self.log,
784+
"Ignoring gossip blob already imported";
785+
"block_root" => ?block_root,
786+
"blob_index" => blob_index,
787+
);
788+
}
781789
Err(err) => {
782790
debug!(
783791
self.log,
784792
"Invalid gossip blob";
785793
"outcome" => ?err,
786-
"block root" => ?block_root,
787-
"block slot" => blob_slot,
788-
"blob index" => blob_index,
794+
"block_root" => ?block_root,
795+
"block_slot" => blob_slot,
796+
"blob_index" => blob_index,
789797
);
790798
self.gossip_penalize_peer(
791799
peer_id,
792800
PeerAction::MidToleranceError,
793801
"bad_gossip_blob_ssz",
794802
);
795-
trace!(
796-
self.log,
797-
"Invalid gossip blob ssz";
798-
);
799803
}
800804
}
801805
}

0 commit comments

Comments
 (0)