From 920c2a9ad765bf087cc52445029c80c33761f069 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Thu, 11 Jun 2026 18:14:18 +0530 Subject: [PATCH] chore(mix): use MixRlnSpamProtection.new constructor, bump plugin pin Rename the call site to the typedesc constructor MixRlnSpamProtection.new (was newMixRlnSpamProtection) to match nim-libp2p conventions, and bump the mix-rln-spam-protection-plugin pin to 61ee3e5 which provides the renamed constructor. --- logos_delivery.nimble | 2 +- logos_delivery/waku/waku_mix/protocol.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logos_delivery.nimble b/logos_delivery.nimble index 101de1904..e9e8fd712 100644 --- a/logos_delivery.nimble +++ b/logos_delivery.nimble @@ -62,7 +62,7 @@ requires "nim >= 2.2.4", # Packages not on nimble (use git URLs) requires "https://github.com/logos-messaging/nim-ffi#v0.1.3" -requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#23b278b4ab21193ad4e9ce76015f008db7332a6f" +requires "https://github.com/logos-co/mix-rln-spam-protection-plugin.git#61ee3e5aacb6b224b70e164ef7d0a5714fe66b26" # nim-libp2p-mix: extracted mix protocol used by the plugin and by waku's # mix integration layer. Tip of experiment/drop-nimble-lock (PR #14, stacked diff --git a/logos_delivery/waku/waku_mix/protocol.nim b/logos_delivery/waku/waku_mix/protocol.nim index 58b8b66d8..5776f3eef 100644 --- a/logos_delivery/waku/waku_mix/protocol.nim +++ b/logos_delivery/waku/waku_mix/protocol.nim @@ -113,7 +113,7 @@ proc new*( spamProtectionConfig.userMessageLimit = userMessageLimit.get() # rlnResourcesPath left empty to use bundled resources (via "tree_height_/" placeholder) - let spamProtection = newMixRlnSpamProtection(spamProtectionConfig).valueOr: + let spamProtection = MixRlnSpamProtection.new(spamProtectionConfig).valueOr: return err("failed to create spam protection: " & error) var m = WakuMix(