use exponential delay for mix and take fix in mix protocol

This commit is contained in:
Prem Chaitanya Prathi 2026-02-10 18:45:40 +05:30
parent 169eac1be8
commit 0cd05812d6
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit ed079aef62538b2b00f347898d0ab1fa1e0761ab
Subproject commit 462c2aca348af46b6eefd5fe012b66cb1dd05be5

View File

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