mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-11 15:14:30 +00:00
Restores the three key lines that make peer discovery work. (#484)
This commit is contained in:
parent
ac2aca42b1
commit
7227a4a38d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user