diff --git a/waku/factory/internal_config.nim b/waku/factory/internal_config.nim index ee356a5e02..e034fafcbb 100644 --- a/waku/factory/internal_config.nim +++ b/waku/factory/internal_config.nim @@ -205,6 +205,7 @@ proc applyPresetConfiguration*(srcConf: WakuNodeConf): Result[WakuNodeConf, stri resConf.discv5Discovery = twnClusterConf.discv5Discovery resConf.discv5BootstrapNodes = resConf.discv5BootstrapNodes & twnClusterConf.discv5BootstrapNodes + resConf.keepAlive = twnClusterConf.keepAlive else: discard diff --git a/waku/factory/networks_config.nim b/waku/factory/networks_config.nim index b31aec3c4d..2fe21ded58 100644 --- a/waku/factory/networks_config.nim +++ b/waku/factory/networks_config.nim @@ -12,6 +12,7 @@ type ClusterConf* = object pubsubTopics*: seq[string] discv5Discovery*: bool discv5BootstrapNodes*: seq[string] + keepAlive*: bool # cluster-id=0 # Cluster configuration for the default pubsub topic. Note that it @@ -50,4 +51,5 @@ proc TheWakuNetworkConf*(T: type ClusterConf): ClusterConf = "enr:-QEkuEBIkb8q8_mrorHndoXH9t5N6ZfD-jehQCrYeoJDPHqT0l0wyaONa2-piRQsi3oVKAzDShDVeoQhy0uwN1xbZfPZAYJpZIJ2NIJpcIQiQlleim11bHRpYWRkcnO4bgA0Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQZ2XwA2Ni9ub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEud2FrdS5zYW5kYm94LnN0YXR1cy5pbQYfQN4DgnJzkwABCAAAAAEAAgADAAQABQAGAAeJc2VjcDI1NmsxoQKnGt-GSgqPSf3IAPM7bFgTlpczpMZZLF3geeoNNsxzSoN0Y3CCdl-DdWRwgiMohXdha3UyDw", "enr:-QEkuEB3WHNS-xA3RDpfu9A2Qycr3bN3u7VoArMEiDIFZJ66F1EB3d4wxZN1hcdcOX-RfuXB-MQauhJGQbpz3qUofOtLAYJpZIJ2NIJpcIQI2SVcim11bHRpYWRkcnO4bgA0Ni9ub2RlLTAxLmFjLWNuLWhvbmdrb25nLWMud2FrdS5zYW5kYm94LnN0YXR1cy5pbQZ2XwA2Ni9ub2RlLTAxLmFjLWNuLWhvbmdrb25nLWMud2FrdS5zYW5kYm94LnN0YXR1cy5pbQYfQN4DgnJzkwABCAAAAAEAAgADAAQABQAGAAeJc2VjcDI1NmsxoQPK35Nnz0cWUtSAhBp7zvHEhyU_AqeQUlqzLiLxfP2L4oN0Y3CCdl-DdWRwgiMohXdha3UyDw", ], + keepAlive: true, )