diff --git a/waku/factory/external_config.nim b/waku/factory/external_config.nim index 6995a9a8e..9ce626702 100644 --- a/waku/factory/external_config.nim +++ b/waku/factory/external_config.nim @@ -310,7 +310,7 @@ type WakuNodeConf* = object .}: seq[string] shards* {. - desc: "Shards index to subscribe to [0..MAX_SHARDS-1]. Argument may be repeated.", + desc: "Shards index to subscribe to [0.." & $MaxShardIndex & "]. Argument may be repeated.", defaultValue: @[ uint16(0), diff --git a/waku/waku_enr/sharding.nim b/waku/waku_enr/sharding.nim index 8c7fdb363..7c6df52e4 100644 --- a/waku/waku_enr/sharding.nim +++ b/waku/waku_enr/sharding.nim @@ -13,7 +13,7 @@ import ../common/enr, ../waku_core logScope: topics = "waku enr sharding" -const MaxShardIndex: uint16 = 1023 +const MaxShardIndex*: uint16 = 1023 const ShardingIndicesListEnrField* = "rs"