Add Status test nodes (#486)

This commit is contained in:
Kim De Mey 2020-04-08 22:16:28 +02:00 committed by GitHub
parent 927a5f3afe
commit dcd1339b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 0b110f3287f26e03f5e7ac4c9e7f0103456895c0
Subproject commit 3f1d6e2922e491bb883d7a8a19053dfef9ef6ea5

2
vendor/nim-stew vendored

@ -1 +1 @@
Subproject commit 9414202d53fac99a0b1af33acac816ff9236e6d0
Subproject commit b06a5b6e32aa4d5abf9c1019ab6728fa8f360cc5

View File

@ -7,6 +7,7 @@ type
none
prod
staging
test
WakuNodeConf* = object
logLevel* {.

View File

@ -96,6 +96,7 @@ proc run(config: WakuNodeConf) =
let bootnodes = if config.bootnodes.len > 0: setBootNodes(config.bootnodes)
elif config.fleet == prod: setBootNodes(StatusBootNodes)
elif config.fleet == staging: setBootNodes(StatusBootNodesStaging)
elif config.fleet == test : setBootNodes(StatusBootNodesTest)
else: @[]
traceAsyncErrors node.connectToNetwork(bootnodes, not config.noListen,
@ -106,6 +107,7 @@ proc run(config: WakuNodeConf) =
if config.staticnodes.len > 0: connectToNodes(node, config.staticnodes)
elif config.fleet == prod: connectToNodes(node, WhisperNodes)
elif config.fleet == staging: connectToNodes(node, WhisperNodesStaging)
elif config.fleet == test: connectToNodes(node, WhisperNodesTest)
if config.rpc:
let ta = initTAddress(config.rpcAddress,