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,
|
IpTransportProtocol.udpProtocol,
|
||||||
port)])).expect("Should construct signed record").some
|
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.} =
|
proc start*(d: Discovery) {.async.} =
|
||||||
d.protocol.open()
|
d.protocol.open()
|
||||||
await d.protocol.start()
|
await d.protocol.start()
|
||||||
|
|
Loading…
Reference in New Issue