This commit is contained in:
Fabiana Cecin 2026-06-05 00:18:08 -03:00
parent 9a5f22b62a
commit 096942828d
No known key found for this signature in database
GPG Key ID: BCAB8A55CB51B6C7
3 changed files with 10 additions and 9 deletions

View File

@ -11,7 +11,6 @@ import
waku/factory/conf_builder/conf_builder,
waku/common/logging
suite "WakuNodeConf - mode-driven toWakuConf":
test "Core mode enables service protocols":
## Given
@ -151,8 +150,7 @@ suite "WakuNodeConf - JSON parsing with fieldPairs":
test "JSON with unknown fields is rejected":
## Given / When
let confRes =
parseNodeConfFromJson("""{"unknownField": true, "clusterId": 5}""")
let confRes = parseNodeConfFromJson("""{"unknownField": true, "clusterId": 5}""")
## Then - the parser rejects unrecognized config keys
check confRes.isErr()
@ -268,8 +266,7 @@ suite "WakuNodeConf JSON -> WakuConf integration":
test "JSON with preset produces valid WakuConf":
## Given
let confRes =
parseNodeConfFromJson("""{"mode": "Core", "preset": "logosdev"}""")
let confRes = parseNodeConfFromJson("""{"mode": "Core", "preset": "logosdev"}""")
require confRes.isOk()
let conf = confRes.get()

View File

@ -288,7 +288,8 @@ hence would have reachability issues.""",
## Relay config
relay* {.
desc: "Enable relay protocol: true|false", defaultValue: DefaultCLIRelay,
desc: "Enable relay protocol: true|false",
defaultValue: DefaultCLIRelay,
name: "relay"
.}: bool

View File

@ -43,11 +43,14 @@ const git_version {.strdefine.} = "(unknown)"
const
DefaultMaxConnections* = 150
DefaultRelay*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
DefaultRelay*: bool = false
# historical confbuilder default; wakunode2 CLI deviates (true)
DefaultLightPush*: bool = false
DefaultPeerExchange*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
DefaultPeerExchange*: bool = false
# historical confbuilder default; wakunode2 CLI deviates (true)
DefaultStoreSyncMount*: bool = false
DefaultRendezvous*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
DefaultRendezvous*: bool = false
# historical confbuilder default; wakunode2 CLI deviates (true)
DefaultMix*: bool = false
DefaultRelayPeerExchange*: bool = false
DefaultLogLevel*: logging.LogLevel = logging.LogLevel.INFO