From 19bb78a2df260d000a8334182df09735f801ecde Mon Sep 17 00:00:00 2001 From: Yilun Date: Thu, 2 Mar 2023 21:53:30 -0800 Subject: [PATCH] Bump NetVersionNum Signed-off-by: Yilun --- api/websocket/server/server.go | 7 +------ cmd/nknd/commands/root.go | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/websocket/server/server.go b/api/websocket/server/server.go index 83516238b..45df4c5fd 100644 --- a/api/websocket/server/server.go +++ b/api/websocket/server/server.go @@ -172,8 +172,6 @@ func (ws *WsServer) registryMethod() { return api.RespPacking(nil, errcode.INVALID_PARAMS) } - // TODO: use signature (or better, with one-time challenge) to verify identity - localNode := s.GetNetNode() isTlsClient := cmd["IsTls"].(bool) @@ -231,13 +229,10 @@ func (ws *WsServer) registryMethod() { time.Sleep(3 * time.Second) // sleep several second, let response reach client ws.SessionList.CloseSession(sess) // close this session }() - return api.RespPacking(nil, errcode.INVALID_SIGNATURE) - } else { - log.Infof("client auth pass") } } else { - log.Infof("client doesn't send signature, it should be old version sdk") + log.Debugf("client didn't send signature") } newSessionID := hex.EncodeToString(clientID) diff --git a/cmd/nknd/commands/root.go b/cmd/nknd/commands/root.go index 7f84cadb4..36ed5f1fc 100644 --- a/cmd/nknd/commands/root.go +++ b/cmd/nknd/commands/root.go @@ -7,7 +7,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/nknorg/nkn/v2/pb" "io" "math" "math/rand" @@ -32,6 +31,7 @@ import ( "github.com/nknorg/nkn/v2/dashboard" serviceConfig "github.com/nknorg/nkn/v2/dashboard/config" "github.com/nknorg/nkn/v2/lnode" + "github.com/nknorg/nkn/v2/pb" "github.com/nknorg/nkn/v2/por" "github.com/nknorg/nkn/v2/transaction" "github.com/nknorg/nkn/v2/util" @@ -47,7 +47,7 @@ import ( ) const ( - NetVersionNum = 30 // This is temporary and will be removed soon after mainnet is stabilized + NetVersionNum = 31 // This is temporary and will be removed soon after mainnet is stabilized ) // rootCmd represents the base command when called without any subcommands