From d8160ff0f73d13026c4c31086562d9745a7be6cc Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Thu, 15 Jun 2023 12:09:34 +0200 Subject: [PATCH] add logging helper for Protocol Signed-off-by: Csaba Kiraly --- codexdht/private/eth/p2p/discoveryv5/protocol.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codexdht/private/eth/p2p/discoveryv5/protocol.nim b/codexdht/private/eth/p2p/discoveryv5/protocol.nim index 36e8de4..06bfec9 100644 --- a/codexdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/codexdht/private/eth/p2p/discoveryv5/protocol.nim @@ -182,6 +182,9 @@ type DiscResult*[T] = Result[T, cstring] +func `$`*(p: Protocol): string = + $p.localNode.id + const defaultDiscoveryConfig* = DiscoveryConfig( tableIpLimits: DefaultTableIpLimits,