doc: clarify max shard value on CLI args

This commit is contained in:
fryorcraken 2024-06-28 12:10:58 +10:00 committed by fryorcraken
parent 4a89875a36
commit 19c110eee2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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