From b06c67dff9e438c7e5a9674e9767b44adfdb40eb Mon Sep 17 00:00:00 2001 From: Tanguy Date: Tue, 28 Feb 2023 18:13:12 +0100 Subject: [PATCH] extra log --- libp2p/protocols/pubsub/gossipsub/behavior.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libp2p/protocols/pubsub/gossipsub/behavior.nim b/libp2p/protocols/pubsub/gossipsub/behavior.nim index 5aa73b958..8e7fa2420 100644 --- a/libp2p/protocols/pubsub/gossipsub/behavior.nim +++ b/libp2p/protocols/pubsub/gossipsub/behavior.nim @@ -272,6 +272,8 @@ proc handleIHave*(g: GossipSub, proc handleIWant*(g: GossipSub, peer: PubSubPeer, iwants: seq[ControlIWant]): seq[Message] {.raises: [Defect].} = + if peer.shortAgent == "lodestar": + info "Got IWANT", peerType=peer.shortAgent, peerId=peer.peerId, msgs=iwants.mapIt(it.messageIds.len) var messages: seq[Message] if peer.score < g.parameters.gossipThreshold: trace "iwant: ignoring low score peer", peer, score = peer.score