Fix test_discoveryv5

This commit is contained in:
Zahary Karadjov 2020-04-15 05:55:08 +03:00
parent bac6248301
commit ee5c9619e0
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -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()),

View File

@ -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()