Merge pull request #484 from status-im/waku-prod-fleet
Small change in fleet naming to prod + update waku spec
This commit is contained in:
commit
927a5f3afe
|
@ -87,9 +87,9 @@ This dashboard can be found at `./waku/metrics/waku-sim-all-nodes-grafana-dashbo
|
|||
|
||||
# Spec support
|
||||
|
||||
*This section last updated February 14, 2020*
|
||||
*This section last updated April 7, 2020*
|
||||
|
||||
This client of Waku is spec compliant with [Waku spec v0.3](https://specs.vac.dev/waku/waku.html).
|
||||
This client of Waku is spec compliant with [Waku spec v0.4](https://specs.vac.dev/waku/waku.html).
|
||||
|
||||
It doesn't yet implement the following recommended features:
|
||||
- No support for rate limiting
|
||||
|
|
|
@ -5,7 +5,7 @@ import
|
|||
type
|
||||
Fleet* = enum
|
||||
none
|
||||
beta
|
||||
prod
|
||||
staging
|
||||
|
||||
WakuNodeConf* = object
|
||||
|
|
|
@ -94,7 +94,7 @@ proc run(config: WakuNodeConf) =
|
|||
|
||||
# TODO: Status fleet bootnodes are discv5? That will not work.
|
||||
let bootnodes = if config.bootnodes.len > 0: setBootNodes(config.bootnodes)
|
||||
elif config.fleet == beta: setBootNodes(StatusBootNodes)
|
||||
elif config.fleet == prod: setBootNodes(StatusBootNodes)
|
||||
elif config.fleet == staging: setBootNodes(StatusBootNodesStaging)
|
||||
else: @[]
|
||||
|
||||
|
@ -104,7 +104,7 @@ proc run(config: WakuNodeConf) =
|
|||
if not config.bootnodeOnly:
|
||||
# Optionally direct connect with a set of nodes
|
||||
if config.staticnodes.len > 0: connectToNodes(node, config.staticnodes)
|
||||
elif config.fleet == beta: connectToNodes(node, WhisperNodes)
|
||||
elif config.fleet == prod: connectToNodes(node, WhisperNodes)
|
||||
elif config.fleet == staging: connectToNodes(node, WhisperNodesStaging)
|
||||
|
||||
if config.rpc:
|
||||
|
|
Loading…
Reference in New Issue