mirror of https://github.com/waku-org/nwaku.git
41 lines
2.2 KiB
Nim
41 lines
2.2 KiB
Nim
when (NimMajor, NimMinor) < (1, 4):
|
||
{.push raises: [Defect].}
|
||
else:
|
||
{.push raises: [].}
|
||
|
||
type ClusterConf* = object
|
||
maxMessageSize*: string
|
||
clusterId*: uint32
|
||
rlnRelay*: bool
|
||
rlnRelayEthContractAddress*: string
|
||
rlnRelayDynamic*: bool
|
||
rlnRelayBandwidthThreshold*: int
|
||
pubsubTopics*: seq[string]
|
||
discv5Discovery*: bool
|
||
discv5BootstrapNodes*: seq[string]
|
||
|
||
# cluster-id=1
|
||
# Cluster configuration corresponding to The Waku Network. Note that it
|
||
# overrides existing cli configuration
|
||
proc TheWakuNetworkConf*(T: type ClusterConf): ClusterConf =
|
||
return ClusterConf(
|
||
maxMessageSize: "150KiB",
|
||
clusterId: 1.uint32,
|
||
rlnRelay: true,
|
||
rlnRelayEthContractAddress: "0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4",
|
||
rlnRelayDynamic: true,
|
||
rlnRelayBandwidthThreshold: 0,
|
||
pubsubTopics:
|
||
@[
|
||
"/waku/2/rs/1/0", "/waku/2/rs/1/1", "/waku/2/rs/1/2", "/waku/2/rs/1/3",
|
||
"/waku/2/rs/1/4", "/waku/2/rs/1/5", "/waku/2/rs/1/6", "/waku/2/rs/1/7"
|
||
],
|
||
discv5Discovery: true,
|
||
discv5BootstrapNodes:
|
||
@[
|
||
"enr:-QESuEC1p_s3xJzAC_XlOuuNrhVUETmfhbm1wxRGis0f7DlqGSw2FM-p2Ugl_r25UHQJ3f1rIRrpzxJXSMaJe4yk1XFSAYJpZIJ2NIJpcISygI2rim11bHRpYWRkcnO4XAArNiZub2RlLTAxLmRvLWFtczMud2FrdS50ZXN0LnN0YXR1c2ltLm5ldAZ2XwAtNiZub2RlLTAxLmRvLWFtczMud2FrdS50ZXN0LnN0YXR1c2ltLm5ldAYfQN4DgnJzkwABCAAAAAEAAgADAAQABQAGAAeJc2Vj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