Closed fbarbu15 closed 2 weeks ago
Agree, this should works and doesnt:
./build/wakunode2\
--rest=true\
--log-level=DEBUG\
--relay=true\
--cluster-id=0
But I maybe it should default to 0
I would say shard should not default to 0. Right now it defaults to all shards. Meaning this defaults to shard 0, 1, 2, 3.
./build/wakunode2\
--rest=true\
--log-level=DEBUG\
--relay=true\
--pubsub-topic=/waku/2/rs/10/0\
--pubsub-topic=/waku/2/rs/10/1\
--pubsub-topic=/waku/2/rs/10/2\
--pubsub-topic=/waku/2/rs/10/3\
--cluster-id=10\
This looks like it has been caused by my recent fix https://github.com/waku-org/nwaku/pull/2633 as the error is pointing to the code that was introduced.
Will take a look.
Problem
Seems that shard flag was made mandatory. But I maybe it should default to 0 (like cluster id) if not passed. And even if it's left mandatory maybe a clearer error message can be added so the node operator is aware that shard is mandatory
nwaku version/commit hash
harbor.status.im/wakuorg/nwaku:latest