From 0cd05812d6f837c3d7e158c4e05ceb8b6aa9c536 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Tue, 10 Feb 2026 18:45:40 +0530 Subject: [PATCH] use exponential delay for mix and take fix in mix protocol --- vendor/nim-libp2p | 2 +- waku/waku_mix/protocol.nim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index ed079aef6..462c2aca3 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit ed079aef62538b2b00f347898d0ab1fa1e0761ab +Subproject commit 462c2aca348af46b6eefd5fe012b66cb1dd05be5 diff --git a/waku/waku_mix/protocol.nim b/waku/waku_mix/protocol.nim index e57352d92..c77ec46d0 100644 --- a/waku/waku_mix/protocol.nim +++ b/waku/waku_mix/protocol.nim @@ -90,7 +90,8 @@ proc new*( procCall MixProtocol(m).init( localMixNodeInfo, peermgr.switch, - delayStrategy = NoSamplingDelayStrategy.new(crypto.newRng()), + delayStrategy = + ExponentialDelayStrategy.new(meanDelayMs = 50, rng = crypto.newRng()), ) processBootNodes(bootnodes, peermgr, m)