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
This commit is contained in:
Anna Shaleva 2020-03-13 18:03:58 +03:00
parent ba1c3bfccb
commit e5c6fd0aae

View file

@ -155,7 +155,10 @@ func Load(path string, netMode NetMode) (Config, error) {
ProtocolConfiguration: ProtocolConfiguration{ ProtocolConfiguration: ProtocolConfiguration{
SystemFee: SystemFee{}, SystemFee: SystemFee{},
}, },
ApplicationConfiguration: ApplicationConfiguration{}, ApplicationConfiguration: ApplicationConfiguration{
PingInterval: 30,
PingTimeout: 90,
},
} }
err = yaml.Unmarshal(configData, &config) err = yaml.Unmarshal(configData, &config)