diff --git a/pkg/lumera/connection.go b/pkg/lumera/connection.go index 8abdc0f5..66d12de6 100644 --- a/pkg/lumera/connection.go +++ b/pkg/lumera/connection.go @@ -19,7 +19,7 @@ import ( const ( // Time budget to wait for a candidate to reach READY - dialReadyTimeout = 10 * time.Second + dialReadyTimeout = 60 * time.Second ) // Default ports to try when none is specified (order matters). diff --git a/supernode/verifier/verifier.go b/supernode/verifier/verifier.go index b6f29559..3e77172e 100644 --- a/supernode/verifier/verifier.go +++ b/supernode/verifier/verifier.go @@ -78,21 +78,12 @@ func (cv *ConfigVerifier) checkSupernodeExists(ctx context.Context, result *Veri sn, err := cv.lumeraClient.SuperNode().GetSupernodeWithLatestAddress(ctx, cv.config.SupernodeConfig.Identity) if err != nil { result.Valid = false - result.Errors = append(result.Errors, ConfigError{Field: "registration", Actual: "not_registered", Message: fmt.Sprintf("Supernode not registered on chain for address %s", cv.config.SupernodeConfig.Identity)}) + result.Errors = append(result.Errors, ConfigError{Field: "registration", Actual: "error", Message: err.Error()}) return nil, err } return sn, nil } -func (cv *ConfigVerifier) checkP2PPortMatches(result *VerificationResult, supernodeInfo *snmodule.SuperNodeInfo) { - configPort := fmt.Sprintf("%d", cv.config.P2PConfig.Port) - chainPort := supernodeInfo.P2PPort - if chainPort != "" && chainPort != configPort { - result.Valid = false - result.Errors = append(result.Errors, ConfigError{Field: "p2p_port", Expected: chainPort, Actual: configPort, Message: fmt.Sprintf("P2P port mismatch: config=%s, chain=%s", configPort, chainPort)}) - } -} - func (cv *ConfigVerifier) checkSupernodeState(result *VerificationResult, supernodeInfo *snmodule.SuperNodeInfo) { if supernodeInfo.CurrentState != "" && supernodeInfo.CurrentState != "SUPERNODE_STATE_ACTIVE" { result.Valid = false