Skip to content

Commit 0cd0581

Browse files
committed
use exponential delay for mix and take fix in mix protocol
1 parent 169eac1 commit 0cd0581

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

waku/waku_mix/protocol.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ proc new*(
9090
procCall MixProtocol(m).init(
9191
localMixNodeInfo,
9292
peermgr.switch,
93-
delayStrategy = NoSamplingDelayStrategy.new(crypto.newRng()),
93+
delayStrategy =
94+
ExponentialDelayStrategy.new(meanDelayMs = 50, rng = crypto.newRng()),
9495
)
9596

9697
processBootNodes(bootnodes, peermgr, m)

0 commit comments

Comments
 (0)