Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/lumera/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
11 changes: 1 addition & 10 deletions supernode/verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down