Skip to content

Commit 2d9cc0a

Browse files
Merge branch 'master' into release/v0.37
2 parents 282a929 + 7e5041d commit 2d9cc0a

File tree

95 files changed

+519
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+519
-522
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
os: [ubuntu-22.04, macos-13]
57+
os: [ubuntu-22.04, macos-15]
5858
runs-on: ${{ matrix.os }}
59-
timeout-minutes: 60
59+
timeout-minutes: 45
6060

6161
name: build-${{ matrix.os }}
6262
steps:
@@ -92,9 +92,9 @@ jobs:
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
os: [ubuntu-22.04, macos-13]
95+
os: [ubuntu-22.04, macos-15]
9696
runs-on: ${{ matrix.os }}
97-
timeout-minutes: 60
97+
timeout-minutes: 45
9898

9999
name: test-${{ matrix.os }}
100100
steps:

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
needs: tag-name
3535
strategy:
3636
matrix:
37-
os: [ubuntu-22.04, macos-13]
37+
os: [ubuntu-22.04, macos-15]
3838
arch: [amd64]
3939
include:
40-
- os: macos-13
40+
- os: macos-15
4141
arch: arm64
4242
runs-on: ${{ matrix.os }}
4343
steps:

.github/workflows/release-assets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
build-and-upload:
1515
strategy:
1616
matrix:
17-
os: [ubuntu-22.04, macos-13]
17+
os: [ubuntu-22.04, macos-15]
1818
arch: [amd64]
1919
include:
20-
- os: macos-13
20+
- os: macos-15
2121
arch: arm64
2222
runs-on: ${{ matrix.os }}
2323
timeout-minutes: 60

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ nimbus-build-system-nimble-dir:
177177
.PHONY: librln
178178

179179
LIBRLN_BUILDDIR := $(CURDIR)/vendor/zerokit
180-
LIBRLN_VERSION := v0.7.0
180+
LIBRLN_VERSION := v0.8.0
181181

182182
ifeq ($(detected_OS),Windows)
183183
LIBRLN_FILE := rln.lib

apps/benchmarks/benchmarks.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ proc benchmark(
2424
except Exception, CatchableError:
2525
assert false, "exception raised: " & getCurrentExceptionMsg()
2626

27-
debug "registration finished",
27+
info "registration finished",
2828
iter = i, elapsed_ms = (getTime() - start_time).inMilliseconds
2929

3030
discard await manager.updateRoots()
@@ -33,7 +33,7 @@ proc benchmark(
3333
quit(QuitFailure)
3434

3535
let epoch = default(Epoch)
36-
debug "epoch in bytes", epochHex = epoch.inHex()
36+
info "epoch in bytes", epochHex = epoch.inHex()
3737
let data: seq[byte] = newSeq[byte](1024)
3838

3939
var proofGenTimes: seq[times.Duration] = @[]
@@ -50,7 +50,7 @@ proc benchmark(
5050
let ok = manager.verifyProof(data, proof).valueOr:
5151
raiseAssert $error
5252
proofVerTimes.add(getTime() - verify_time)
53-
debug "iteration finished",
53+
info "iteration finished",
5454
iter = i, elapsed_ms = (getTime() - start_time).inMilliseconds
5555

5656
echo "Proof generation times: ", sum(proofGenTimes) div len(proofGenTimes)

apps/chat2/chat2.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ proc publish(c: Chat, line: string) =
194194
# for future version when we support more than one rln protected content topic,
195195
# we should check the message content topic as well
196196
if c.node.wakuRlnRelay.appendRLNProof(message, float64(time)).isErr():
197-
debug "could not append rate limit proof to the message"
197+
info "could not append rate limit proof to the message"
198198
else:
199-
debug "rate limit proof is appended to the message"
199+
info "rate limit proof is appended to the message"
200200
let proof = RateLimitProof.init(message.proof).valueOr:
201201
error "could not decode the RLN proof"
202202
return
@@ -406,7 +406,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
406406
)
407407
elif conf.dnsDiscoveryUrl != "":
408408
# No pre-selected fleet. Discover nodes via DNS using user config
409-
debug "Discovering nodes using Waku DNS discovery", url = conf.dnsDiscoveryUrl
409+
info "Discovering nodes using Waku DNS discovery", url = conf.dnsDiscoveryUrl
410410
dnsDiscoveryUrl = some(conf.dnsDiscoveryUrl)
411411

412412
var discoveredNodes: seq[RemotePeerInfo]
@@ -528,7 +528,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
528528
info "WakuRLNRelay is enabled"
529529

530530
proc spamHandler(wakuMessage: WakuMessage) {.gcsafe, closure.} =
531-
debug "spam handler is called"
531+
info "spam handler is called"
532532
let chatLineResult = getChatLine(wakuMessage.payload)
533533
echo "spam message is found and discarded : " & chatLineResult
534534
chat.prompt = false

apps/chat2bridge/chat2bridge.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ proc start*(cmb: Chat2MatterBridge) {.async.} =
197197

198198
cmb.running = true
199199

200-
debug "Start polling Matterbridge"
200+
info "Start polling Matterbridge"
201201

202202
# Start Matterbridge polling (@TODO: use streaming interface)
203203
proc mbHandler(jsonNode: JsonNode) {.async.} =
@@ -207,7 +207,7 @@ proc start*(cmb: Chat2MatterBridge) {.async.} =
207207
asyncSpawn cmb.pollMatterbridge(mbHandler)
208208

209209
# Start Waku v2 node
210-
debug "Start listening on Waku v2"
210+
info "Start listening on Waku v2"
211211
await cmb.nodev2.start()
212212

213213
# Always mount relay for bridge

apps/chat2mix/chat2mix.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
501501
)
502502
elif conf.dnsDiscoveryUrl != "":
503503
# No pre-selected fleet. Discover nodes via DNS using user config
504-
debug "Discovering nodes using Waku DNS discovery", url = conf.dnsDiscoveryUrl
504+
info "Discovering nodes using Waku DNS discovery", url = conf.dnsDiscoveryUrl
505505
dnsDiscoveryUrl = some(conf.dnsDiscoveryUrl)
506506

507507
var discoveredNodes: seq[RemotePeerInfo]

apps/liteprotocoltester/liteprotocoltester.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ when isMainModule:
130130
error "Starting waku failed", error = error
131131
quit(QuitFailure)
132132

133-
debug "Setting up shutdown hooks"
133+
info "Setting up shutdown hooks"
134134

135135
proc asyncStopper(waku: Waku) {.async: (raises: [Exception]).} =
136136
await waku.stop()

apps/liteprotocoltester/service_peer_management.nim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ proc selectRandomCapablePeer*(
7373
let rndPeerIndex = rand(0 .. supportivePeers.len - 1)
7474
let randomPeer = supportivePeers[rndPeerIndex]
7575

76-
debug "Dialing random peer",
76+
info "Dialing random peer",
7777
idx = $rndPeerIndex, peer = constructMultiaddrStr(randomPeer)
7878

7979
supportivePeers.delete(rndPeerIndex .. rndPeerIndex)
@@ -82,12 +82,12 @@ proc selectRandomCapablePeer*(
8282
if (await connOpt.withTimeout(10.seconds)):
8383
if connOpt.value().isSome():
8484
found = some(randomPeer)
85-
debug "Dialing successful",
85+
info "Dialing successful",
8686
peer = constructMultiaddrStr(randomPeer), codec = codec
8787
else:
88-
debug "Dialing failed", peer = constructMultiaddrStr(randomPeer), codec = codec
88+
info "Dialing failed", peer = constructMultiaddrStr(randomPeer), codec = codec
8989
else:
90-
debug "Timeout dialing service peer",
90+
info "Timeout dialing service peer",
9191
peer = constructMultiaddrStr(randomPeer), codec = codec
9292

9393
return found
@@ -105,8 +105,8 @@ proc tryCallAllPxPeers*(
105105
var supportivePeers = pm.switch.peerStore.getPeersByCapability(capability)
106106

107107
lpt_px_peers.set(supportivePeers.len)
108-
debug "Found supportive peers count", count = supportivePeers.len()
109-
debug "Found supportive peers", supportivePeers = $supportivePeers
108+
info "Found supportive peers count", count = supportivePeers.len()
109+
info "Found supportive peers", supportivePeers = $supportivePeers
110110
if supportivePeers.len == 0:
111111
return none(seq[RemotePeerInfo])
112112

@@ -116,7 +116,7 @@ proc tryCallAllPxPeers*(
116116
let rndPeerIndex = rand(0 .. supportivePeers.len - 1)
117117
let randomPeer = supportivePeers[rndPeerIndex]
118118

119-
debug "Dialing random peer",
119+
info "Dialing random peer",
120120
idx = $rndPeerIndex, peer = constructMultiaddrStr(randomPeer)
121121

122122
supportivePeers.delete(rndPeerIndex, rndPeerIndex)

0 commit comments

Comments
 (0)