Skip to content

Commit

Permalink
add missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Jul 29, 2022
1 parent 34cbaf9 commit 89faf14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,14 @@ func addNodeFunc(cmd *cobra.Command, args []string) error {
opts = append(opts, client.WithChainConfigs(chainConfigsMap))
}

if upgradeConfigs != "" {
upgradeConfigsMap := make(map[string]string)
if err := json.Unmarshal([]byte(chainConfigs), &upgradeConfigsMap); err != nil {
return err
}
opts = append(opts, client.WithUpgradeConfigs(upgradeConfigsMap))
}

ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
info, err := cli.AddNode(
ctx,
Expand Down

0 comments on commit 89faf14

Please sign in to comment.