log routing table size periodically

This commit is contained in:
Csaba Kiraly 2023-05-10 00:46:45 +02:00
parent 4375b92298
commit f8523ae629
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 1 additions and 0 deletions

View File

@ -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)