From 153ee7fb28c16d250b7a92c5f390cb71f023c1f6 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 +- nimble.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/logos_delivery.nimble b/logos_delivery.nimble index 512d48f4e..2540fe48b 100644 --- a/logos_delivery.nimble +++ b/logos_delivery.nimble @@ -66,7 +66,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 e88932b91..821c2cdf9 100644 --- a/logos_delivery/waku/waku_mix/protocol.nim +++ b/logos_delivery/waku/waku_mix/protocol.nim @@ -112,7 +112,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( diff --git a/nimble.lock b/nimble.lock index 023b9eb66..731d95fe3 100644 --- a/nimble.lock +++ b/nimble.lock @@ -599,8 +599,8 @@ } }, "mix_rln_spam_protection": { - "version": "#23b278b4ab21193ad4e9ce76015f008db7332a6f", - "vcsRevision": "23b278b4ab21193ad4e9ce76015f008db7332a6f", + "version": "#61ee3e5aacb6b224b70e164ef7d0a5714fe66b26", + "vcsRevision": "61ee3e5aacb6b224b70e164ef7d0a5714fe66b26", "url": "https://github.com/logos-co/mix-rln-spam-protection-plugin.git", "downloadMethod": "git", "dependencies": [ @@ -616,7 +616,7 @@ "libp2p_mix" ], "checksums": { - "sha1": "4a08ea061e659e248249318315ed7ed66f5dd90f" + "sha1": "03d1e7d7663a3136b1799d3dc507ee4689511235" } }, "eth": {