From 7227a4a38dbff101ca85dd1b3231741ecdf36b1d Mon Sep 17 00:00:00 2001 From: Ben Bierens <39762930+benbierens@users.noreply.github.com> Date: Tue, 18 Jul 2023 07:51:20 +0200 Subject: [PATCH] Restores the three key lines that make peer discovery work. (#484) --- codex/discovery.nim | 4 ++++ 1 file changed, 4 insertions(+) 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()