From 372e37d359f575a697b9562b811739e24c7dd038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Sun, 17 Nov 2024 11:30:50 +0900 Subject: [PATCH] Fixup condition --- tm2/pkg/bft/node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tm2/pkg/bft/node/node.go b/tm2/pkg/bft/node/node.go index aa22250e522..f2e4c2848a1 100644 --- a/tm2/pkg/bft/node/node.go +++ b/tm2/pkg/bft/node/node.go @@ -857,7 +857,7 @@ func makeNodeInfo( // Validate the node info err = nodeInfo.Validate() - if !goErrors.Is(err, p2pTypes.ErrUnspecifiedIP) { + if err != nil && !goErrors.Is(err, p2pTypes.ErrUnspecifiedIP) { return p2pTypes.NodeInfo{}, fmt.Errorf("unable to validate node info, %w", err) }