2024-06-28 10:34:57 +00:00
|
|
|
{.push raises: [].}
|
2024-02-07 11:42:20 +00:00
|
|
|
|
|
|
|
type ClusterConf* = object
|
|
|
|
maxMessageSize*: string
|
2024-06-05 13:32:35 +00:00
|
|
|
clusterId*: uint16
|
2024-02-07 11:42:20 +00:00
|
|
|
rlnRelay*: bool
|
|
|
|
rlnRelayEthContractAddress*: string
|
2024-06-28 09:19:16 +00:00
|
|
|
rlnRelayChainId*: uint
|
2024-02-07 11:42:20 +00:00
|
|
|
rlnRelayDynamic*: bool
|
|
|
|
rlnRelayBandwidthThreshold*: int
|
2024-02-28 16:19:20 +00:00
|
|
|
rlnEpochSizeSec*: uint64
|
|
|
|
rlnRelayUserMessageLimit*: uint64
|
2024-09-10 21:07:12 +00:00
|
|
|
numShardsInNetwork*: uint32
|
2024-02-07 11:42:20 +00:00
|
|
|
discv5Discovery*: bool
|
|
|
|
discv5BootstrapNodes*: seq[string]
|
|
|
|
|
2024-04-04 06:19:31 +00:00
|
|
|
# cluster-id=1 (aka The Waku Network)
|
2024-02-07 11:42:20 +00:00
|
|
|
# Cluster configuration corresponding to The Waku Network. Note that it
|
2024-02-28 16:19:20 +00:00
|
|
|
# overrides existing cli configuration
|
2024-02-07 11:42:20 +00:00
|
|
|
proc TheWakuNetworkConf*(T: type ClusterConf): ClusterConf =
|
|
|
|
return ClusterConf(
|
|
|
|
maxMessageSize: "150KiB",
|
2024-06-05 13:32:35 +00:00
|
|
|
clusterId: 1,
|
2024-02-07 11:42:20 +00:00
|
|
|
rlnRelay: true,
|
2024-07-03 16:11:11 +00:00
|
|
|
rlnRelayEthContractAddress: "0xCB33Aa5B38d79E3D9Fa8B10afF38AA201399a7e3",
|
2024-02-07 11:42:20 +00:00
|
|
|
rlnRelayDynamic: true,
|
2024-07-03 16:11:11 +00:00
|
|
|
rlnRelayChainId: 11155111,
|
2024-02-07 11:42:20 +00:00
|
|
|
rlnRelayBandwidthThreshold: 0,
|
2024-06-27 09:45:21 +00:00
|
|
|
rlnEpochSizeSec: 600,
|
2024-07-15 16:00:44 +00:00
|
|
|
rlnRelayUserMessageLimit: 100,
|
2024-09-10 21:07:12 +00:00
|
|
|
numShardsInNetwork: 8,
|
2024-02-07 11:42:20 +00:00
|
|
|
discv5Discovery: true,
|
|
|
|
discv5BootstrapNodes:
|
|
|
|
@[
|
2024-07-03 16:11:11 +00:00
|
|
|
"enr:-QESuED0qW1BCmF-oH_ARGPr97Nv767bl_43uoy70vrbah3EaCAdK3Q0iRQ6wkSTTpdrg_dU_NC2ydO8leSlRpBX4pxiAYJpZIJ2NIJpcIRA4VDAim11bHRpYWRkcnO4XAArNiZub2RlLTAxLmRvLWFtczMud2FrdS5zYW5kYm94LnN0YXR1cy5pbQZ2XwAtNiZub2RlLTAxLmRvLWFtczMud2FrdS5zYW5kYm94LnN0YXR1cy5pbQYfQN4DgnJzkwABCAAAAAEAAgADAAQABQAGAAeJc2VjcDI1NmsxoQOTd-h5owwj-cx7xrmbvQKU8CV3Fomfdvcv1MBc-67T5oN0Y3CCdl-DdWRwgiMohXdha3UyDw",
|
|
|
|
"enr:-QEkuED9X80QF_jcN9gA2ZRhhmwVEeJnsg_Hyg7IFCTYnZD0BDI7a8HArE61NhJZFwygpHCWkgwSt2vqiABXkBxzIqZBAYJpZIJ2NIJpcIQiQlleim11bHRpYWRkcnO4bgA0Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQZ2XwA2Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQYfQN4DgnJzkwABCAAAAAEAAgADAAQABQAGAAeJc2VjcDI1NmsxoQPFAS8zz2cg1QQhxMaK8CzkGQ5wdHvPJcrgLzJGOiHpwYN0Y3CCdl-DdWRwgiMohXdha3UyDw",
|
|
|
|
"enr:-QEkuEBfEzJm_kigJ2HoSS_RBFJYhKHocGdkhhBr6jSUAWjLdFPp6Pj1l4yiTQ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