From 0bf11e1a8e10771b4d343204b68f64981f81750b Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Wed, 15 Jan 2025 18:10:10 +0100 Subject: [PATCH] waku_rln_relay/constants.nim: avoid adding constant seq that is used in tests only --- waku/waku_rln_relay/constants.nim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/waku/waku_rln_relay/constants.nim b/waku/waku_rln_relay/constants.nim index 4918a16a4a..025596f046 100644 --- a/waku/waku_rln_relay/constants.nim +++ b/waku/waku_rln_relay/constants.nim @@ -42,8 +42,14 @@ const # keys are created locally, using createMembershipList proc from waku_rln_relay_utils module, and the results are hardcoded in here # this list is temporary and is created to test the performance of waku-rln-relay for the static groups # in the later versions, this static hardcoded group will be replaced with a dynamic one -const StaticGroupKeys* = - @[ + +when defined(release): + ## the constants are used for testing purposes + ## and they enlarge the resulting binary significantly + const StaticGroupKeys* = @[] +else: + const StaticGroupKeys* = + @[ ( "23904f74b07209db3258de20e981b4564b587b238a5d259ba08329b4f84bc68c", "294993a5e2720d8e85ddbe69c45245fdb974de3b7e62be0a4147f5de75c83059",