Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/testlib/wakucore.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ proc newTestSwitch*(
): Switch =
let peerKey = key.get(generateSecp256k1Key())
let peerAddr = address.get(MultiAddress.init("/ip4/127.0.0.1/tcp/0").get())
return newStandardSwitch(some(peerKey), addrs = peerAddr)
return newStandardSwitch(privKey = Opt.some(peerKey), addrs = peerAddr)

# Waku message

Expand Down
16 changes: 8 additions & 8 deletions tests/wakunode_rest/test_rest_store.nim
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -185,7 +185,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -255,7 +255,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -351,7 +351,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -425,7 +425,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -515,7 +515,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down Expand Up @@ -566,7 +566,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

let client = newRestHttpClient(initTAddress(restAddress, restPort))
Expand Down Expand Up @@ -750,7 +750,7 @@ procSuite "Waku Rest API - Store v3":
node.mountStoreClient()

let key = generateEcdsaKey()
var peerSwitch = newStandardSwitch(some(key))
var peerSwitch = newStandardSwitch(Opt.some(key))
await peerSwitch.start()

peerSwitch.mount(node.wakuStore)
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-libp2p
Submodule nim-libp2p updated 181 files
4 changes: 2 additions & 2 deletions waku/waku_rendezvous/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ proc batchAdvertise*(
conn

let advertCatch = catch:
await self.rendezvous.advertise(namespace, ttl, peers)
await self.rendezvous.advertise(namespace, Opt.some(ttl))

for conn in conns:
await conn.close()
Expand Down Expand Up @@ -126,7 +126,7 @@ proc batchRequest*(
conn

let reqCatch = catch:
await self.rendezvous.request(Opt.some(namespace), count, peers)
await self.rendezvous.request(Opt.some(namespace), Opt.some(count), Opt.some(peers))

for conn in conns:
await conn.close()
Expand Down