From 819a948094fbdfa0e44f581fb2451e94bafeb8ca Mon Sep 17 00:00:00 2001 From: Arnau Date: Fri, 8 Oct 2021 12:28:03 +0200 Subject: [PATCH 1/2] Add toml example for coordinator network --- cmd/heznode/cfg.api.toml | 2 ++ cmd/heznode/cfg.builder.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/cmd/heznode/cfg.api.toml b/cmd/heznode/cfg.api.toml index d93f5b2a8..4a30ac20c 100644 --- a/cmd/heznode/cfg.api.toml +++ b/cmd/heznode/cfg.api.toml @@ -3,6 +3,8 @@ Address = "localhost:8386" Explorer = true MaxSQLConnections = 10 SQLConnectionTimeout = "2s" +CoordinatorNetwork = true +FindPeersCoordinatorNetworkInterval = "300s" [PostgreSQL] PortWrite = 5432 diff --git a/cmd/heznode/cfg.builder.toml b/cmd/heznode/cfg.builder.toml index 6b813b9f5..2e6d6d17e 100644 --- a/cmd/heznode/cfg.builder.toml +++ b/cmd/heznode/cfg.builder.toml @@ -17,6 +17,7 @@ #MaxSQLConnections = 100 ### Maximum amount of time that an API request can wait to establish a SQL connection #SQLConnectionTimeout = "2s" +#CoordinatorNetwork = false #[Debug] ### If it is set, the debug api will listen in this address and port From e24cf2be3579ff8105f79c110f08c65fb62e0e6e Mon Sep 17 00:00:00 2001 From: Arnau Date: Mon, 18 Oct 2021 11:16:31 +0200 Subject: [PATCH 2/2] Update toml example --- cmd/heznode/cfg.api.toml | 2 +- cmd/heznode/cfg.builder.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/heznode/cfg.api.toml b/cmd/heznode/cfg.api.toml index 4a30ac20c..ada69e322 100644 --- a/cmd/heznode/cfg.api.toml +++ b/cmd/heznode/cfg.api.toml @@ -3,7 +3,7 @@ Address = "localhost:8386" Explorer = true MaxSQLConnections = 10 SQLConnectionTimeout = "2s" -CoordinatorNetwork = true +CoordinatorNetwork = false FindPeersCoordinatorNetworkInterval = "300s" [PostgreSQL] diff --git a/cmd/heznode/cfg.builder.toml b/cmd/heznode/cfg.builder.toml index 2e6d6d17e..552395fd3 100644 --- a/cmd/heznode/cfg.builder.toml +++ b/cmd/heznode/cfg.builder.toml @@ -17,7 +17,9 @@ #MaxSQLConnections = 100 ### Maximum amount of time that an API request can wait to establish a SQL connection #SQLConnectionTimeout = "2s" -#CoordinatorNetwork = false +#CoordinatorNetwork = true +#FindPeersCoordinatorNetworkInterval = "300s" + #[Debug] ### If it is set, the debug api will listen in this address and port