fix(networks): move logos.dev preset to cluster-id 3 (#4113)

* fix(networks): move logos.dev preset to cluster-id 3

The Logos Dev Network is now deployed on cluster 3. Update the
`logos.dev` preset accordingly, along with the CLI help text and the
library README preset table.

The deprecated "cluster-id implies preset" shim now triggers on
`--cluster-id=3` instead of `2`: cluster 2 is still the Logos Test
Network, so keeping the old mapping would silently move a node that
explicitly asked for cluster 2 onto cluster 3.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(conf): keep the legacy cluster-id preset shim on cluster 2

Remapping the deprecated `--cluster-id` -> preset shim onto cluster 3
hijacked every caller that uses 3 as a plain cluster id with no preset,
applying the whole logos.dev preset (p2p reliability, mix, discv5, dev
entry nodes) on top. tests/api/test_api_send.nim does exactly that, and
the extra reliability layer made Send emit `Sent` events the tests never
asked for.

Revert that hunk; only the preset's own cluster id moves to 3.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Igor Sirotin 2026-08-11 13:05:25 +02:00 committed by GitHub
parent 342a965370
commit ef651a7ccc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@ Available presets:
| Preset | Cluster ID | RLN | Sharding | Network |
| --- | --- | --- | --- | --- |
| `twn` | 1 | on | auto (8 shards) | The Waku Network |
| `logos.dev` | 2 | off | auto (8 shards) | Logos Dev Network |
| `logos.dev` | 3 | off | auto (8 shards) | Logos Dev Network |
| `logos.test` | 2 | off | auto (8 shards) | Logos Test Network |
| `status.prod` | 16 | off | auto (1 shard) | Status Production Network |

View File

@ -65,13 +65,13 @@ proc TheWakuNetworkConf*(T: type NetworkPresetConf): NetworkPresetConf =
],
)
# cluster-id=2 (Logos Dev Network)
# cluster-id=3 (Logos Dev Network)
# Cluster configuration for the Logos Dev Network.
proc LogosDevConf*(T: type NetworkPresetConf): NetworkPresetConf =
const ZeroChainId = 0'u256
return NetworkPresetConf(
maxMessageSize: DefaultMaxWakuMessageSizeStr,
clusterId: 2,
clusterId: 3,
rlnRelay: false,
rlnRelayEthContractAddress: "",
rlnRelayDynamic: false,

View File

@ -37,7 +37,7 @@ suite "WakuNodeConf - preset integration":
let wakuConf = wakuConfRes.get()
require wakuConf.validate().isOk()
check:
wakuConf.clusterId == 2
wakuConf.clusterId == 3
test "LogosTest preset applies LogosTestConf":
## Given

View File

@ -164,7 +164,7 @@ type WakuNodeConf* = object
## General node config
preset* {.
desc:
"Network preset to use. 'twn' is The RLN-protected Waku Network (cluster 1). 'logos.dev' is the Logos Dev Network (cluster 2). 'logos.test' is the Logos Test Network (cluster 2). 'status.prod' is the Status Production Network (cluster 16, RLN off, auto-sharding with 1 shard). Overrides other values.",
"Network preset to use. 'twn' is The RLN-protected Waku Network (cluster 1). 'logos.dev' is the Logos Dev Network (cluster 3). 'logos.test' is the Logos Test Network (cluster 2). 'status.prod' is the Status Production Network (cluster 16, RLN off, auto-sharding with 1 shard). Overrides other values.",
defaultValue: "",
name: "preset"
.}: string