From f947827c706c84cce3865decb9d1f8e9748a9f02 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 18 Feb 2022 17:42:37 +0200 Subject: [PATCH] Debug logs providing info for the initial discoveryv5 configuration --- eth/p2p/discoveryv5/protocol.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eth/p2p/discoveryv5/protocol.nim b/eth/p2p/discoveryv5/protocol.nim index 2582727..3782c2e 100644 --- a/eth/p2p/discoveryv5/protocol.nim +++ b/eth/p2p/discoveryv5/protocol.nim @@ -933,6 +933,11 @@ proc newProtocol*( record = enr.Record.init(1, privKey, enrIp, enrTcpPort, enrUdpPort, extraFields).expect("Record within size limits") + debug "Initializing discovery v5", + enrIp, enrTcpPort, enrUdpPort, enrAutoUpdate, + bootstrapEnrs = bootstrapRecords, localEnrFields, + bindPort, bindIp + info "ENR initialized", ip = enrIp, tcp = enrTcpPort, udp = enrUdpPort, seqNum = record.seqNum, uri = toURI(record) if enrIp.isNone():