Debug logs providing info for the initial discoveryv5 configuration

This commit is contained in:
Zahary Karadjov 2022-02-18 17:42:37 +02:00
parent 779d767b02
commit f947827c70
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 0 deletions

View File

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