Skip to content

Commit

Permalink
put back rpc check
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Mar 6, 2025
1 parent 3aaa64b commit 03aee84
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions cmd/nodecmd/wiz.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,20 +274,13 @@ func wiz(cmd *cobra.Command, args []string) error {
return nil
}

sc, err := app.LoadSidecar(subnetName)
if err != nil {
ux.Logger.PrintToUser("")
ux.Logger.PrintToUser(logging.Green.Wrap("Checking subnet compatibility"))
ux.Logger.PrintToUser("")
if err := checkRPCCompatibility(clusterName, subnetName); err != nil {
return err
}

if sc.VM != models.CustomVM {
ux.Logger.PrintToUser("")
ux.Logger.PrintToUser(logging.Green.Wrap("Checking subnet compatibility"))
ux.Logger.PrintToUser("")
if err := checkRPCCompatibility(clusterName, subnetName); err != nil {
return err
}
}

ux.Logger.PrintToUser("")
ux.Logger.PrintToUser(logging.Green.Wrap("Creating the blockchain"))
ux.Logger.PrintToUser("")
Expand All @@ -311,7 +304,7 @@ func wiz(cmd *cobra.Command, args []string) error {
}

// load sidecar one more time to get deployed subnet id
sc, err = app.LoadSidecar(subnetName)
sc, err := app.LoadSidecar(subnetName)
if err != nil {
return err
}
Expand Down

0 comments on commit 03aee84

Please sign in to comment.