From f8523ae6293500bae122c33c8eccb0512e5375b6 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 10 May 2023 00:46:45 +0200 Subject: [PATCH] log routing table size periodically --- libp2pdht/private/eth/p2p/discoveryv5/protocol.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index fb0dd2b..e7a2fd5 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -938,6 +938,7 @@ proc revalidateLoop(d: Protocol) {.async.} = try: while true: await sleepAsync(milliseconds(d.rng[].rand(RevalidateMax))) + echo d.localNode.address.get().port, ": ", d.nodesDiscovered() let n = d.routingTable.nodeToRevalidate() if not n.isNil: traceAsyncErrors d.revalidateNode(n)