mirror of https://github.com/waku-org/nwaku.git
feat: set --keep-alive to enabled for TWN preset
This commit is contained in:
parent
6c83ffb21a
commit
4efa7a1879
|
@ -214,6 +214,7 @@ proc applyPresetConfiguration*(srcConf: WakuNodeConf): Result[WakuNodeConf, stri
|
||||||
resConf.discv5Discovery = twnClusterConf.discv5Discovery
|
resConf.discv5Discovery = twnClusterConf.discv5Discovery
|
||||||
resConf.discv5BootstrapNodes =
|
resConf.discv5BootstrapNodes =
|
||||||
resConf.discv5BootstrapNodes & twnClusterConf.discv5BootstrapNodes
|
resConf.discv5BootstrapNodes & twnClusterConf.discv5BootstrapNodes
|
||||||
|
resConf.keepAlive = twnClusterConf.keepAlive
|
||||||
else:
|
else:
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ type ClusterConf* = object
|
||||||
pubsubTopics*: seq[string]
|
pubsubTopics*: seq[string]
|
||||||
discv5Discovery*: bool
|
discv5Discovery*: bool
|
||||||
discv5BootstrapNodes*: seq[string]
|
discv5BootstrapNodes*: seq[string]
|
||||||
|
keepAlive*: bool
|
||||||
|
|
||||||
# cluster-id=1 (aka The Waku Network)
|
# cluster-id=1 (aka The Waku Network)
|
||||||
# Cluster configuration corresponding to The Waku Network. Note that it
|
# Cluster configuration corresponding to The Waku Network. Note that it
|
||||||
|
@ -40,4 +41,5 @@ proc TheWakuNetworkConf*(T: type ClusterConf): ClusterConf =
|
||||||
"enr:-QEkuED9X80QF_jcN9gA2ZRhhmwVEeJnsg_Hyg7IFCTYnZD0BDI7a8HArE61NhJZFwygpHCWkgwSt2vqiABXkBxzIqZBAYJpZIJ2NIJpcIQiQlleim11bHRpYWRkcnO4bgA0Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQZ2XwA2Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQYfQN4DgnJzkwABCAAAAAE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