mirror of https://github.com/status-im/nim-eth.git
Fix test_discoveryv5
This commit is contained in:
parent
bac6248301
commit
ee5c9619e0
|
@ -476,7 +476,7 @@ proc lookupLoop(d: Protocol) {.async.} =
|
||||||
|
|
||||||
proc newProtocol*(privKey: PrivateKey, db: Database,
|
proc newProtocol*(privKey: PrivateKey, db: Database,
|
||||||
externalIp: Option[IpAddress], tcpPort, udpPort: Port,
|
externalIp: Option[IpAddress], tcpPort, udpPort: Port,
|
||||||
localEnrFields: openarray[FieldPair],
|
localEnrFields: openarray[FieldPair] = [],
|
||||||
bootstrapRecords: openarray[Record] = []): Protocol =
|
bootstrapRecords: openarray[Record] = []): Protocol =
|
||||||
let
|
let
|
||||||
a = Address(ip: externalIp.get(IPv4_any()),
|
a = Address(ip: externalIp.get(IPv4_any()),
|
||||||
|
|
|
@ -12,7 +12,7 @@ proc initDiscoveryNode*(privKey: PrivateKey, address: Address,
|
||||||
result = newProtocol(privKey, db,
|
result = newProtocol(privKey, db,
|
||||||
some(parseIpAddress("127.0.0.1")),
|
some(parseIpAddress("127.0.0.1")),
|
||||||
address.tcpPort, address.udpPort,
|
address.tcpPort, address.udpPort,
|
||||||
bootstrapRecords)
|
bootstrapRecords = bootstrapRecords)
|
||||||
|
|
||||||
result.open()
|
result.open()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue