diff --git a/codex/discovery.nim b/codex/discovery.nim index 73fd712e..58b83857 100644 --- a/codex/discovery.nim +++ b/codex/discovery.nim @@ -169,6 +169,10 @@ proc updateDhtRecord*(d: Discovery, ip: ValidIpAddress, port: Port) = IpTransportProtocol.udpProtocol, port)])).expect("Should construct signed record").some + if not d.protocol.isNil: + d.protocol.updateRecord(d.dhtRecord) + .expect("Should update SPR") + proc start*(d: Discovery) {.async.} = d.protocol.open() await d.protocol.start()