From e5c6fd0aae5544b6cae0088b65a6f43c9e84d4f3 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 13 Mar 2020 18:03:58 +0300 Subject: [PATCH] config: add default ping timeouts config value closes #680 Problem: cannot connect to neo-go node with a client with default ping timeouts values Solution: added default config values for PingInterval=30 and PingTimeout=90 --- config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index a57464778..d7b631ca8 100644 --- a/config/config.go +++ b/config/config.go @@ -155,7 +155,10 @@ func Load(path string, netMode NetMode) (Config, error) { ProtocolConfiguration: ProtocolConfiguration{ SystemFee: SystemFee{}, }, - ApplicationConfiguration: ApplicationConfiguration{}, + ApplicationConfiguration: ApplicationConfiguration{ + PingInterval: 30, + PingTimeout: 90, + }, } err = yaml.Unmarshal(configData, &config)