diff --git a/pkg/network/payload/ping.go b/pkg/network/payload/ping.go index 85e0acced..4444a4824 100644 --- a/pkg/network/payload/ping.go +++ b/pkg/network/payload/ping.go @@ -11,9 +11,9 @@ type Ping struct { // Index of the last block. LastBlockIndex uint32 // Timestamp. - Timestamp uint32 + Timestamp uint32 // Nonce of the server. - Nonce uint32 + Nonce uint32 } // NewPing creates new Ping payload. diff --git a/pkg/network/server_config.go b/pkg/network/server_config.go index 9362aa276..a383e30ec 100644 --- a/pkg/network/server_config.go +++ b/pkg/network/server_config.go @@ -88,8 +88,8 @@ func NewServerConfig(cfg config.Config) ServerConfig { Seeds: protoConfig.SeedList, DialTimeout: appConfig.DialTimeout * time.Second, ProtoTickInterval: appConfig.ProtoTickInterval * time.Second, - PingInterval: appConfig.PingInterval * time.Second, - PingTimeout: appConfig.PingTimeout * time.Second, + PingInterval: appConfig.PingInterval * time.Second, + PingTimeout: appConfig.PingTimeout * time.Second, MaxPeers: appConfig.MaxPeers, AttemptConnPeers: appConfig.AttemptConnPeers, MinPeers: appConfig.MinPeers,