Skip to content

Commit

Permalink
Enable devnet key spec (#2158)
Browse files Browse the repository at this point in the history
* enable using other than ewoq on devnets

* nit
  • Loading branch information
felipemadero committed Sep 18, 2024
1 parent 0ad7460 commit b57e0f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/nodecmd/wiz.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ func wiz(cmd *cobra.Command, args []string) error {
ux.Logger.PrintToUser(logging.Green.Wrap("Adding nodes as subnet validators"))
ux.Logger.PrintToUser("")
avoidSubnetValidationChecks = true
useEwoq = true
if err := validateSubnet(cmd, []string{clusterName, subnetName}); err != nil {
return err
}
Expand Down
11 changes: 7 additions & 4 deletions pkg/keychain/keychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,13 @@ func GetKeychainFromCmdLineFlags(
}
}
case network.Kind == models.Devnet:
// going to just use ewoq atm
useEwoq = true
if keyName != "" || useLedger {
return nil, ErrNonEwoqKeyOnDevnet
// prompt the user if no key source was provided
if !useEwoq && !useLedger && keyName == "" {
var err error
useLedger, keyName, err = prompts.GetKeyOrLedger(app.Prompt, keychainGoal, app.GetKeyDir(), true)
if err != nil {
return nil, err
}
}
case network.Kind == models.Fuji:
if useEwoq {
Expand Down

0 comments on commit b57e0f0

Please sign in to comment.