Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Sep 29, 2024
1 parent 1fdea3e commit 4a7c50d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/cmd/model/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m Model) View() string {
return "[Stopped]"
}

output := "Node Control:\n"
output := "Press keys 1,2,3.. to start and stop node 1,2,3.. respectively \nNode Control:\n"
for i := 0; i < m.numNodes; i++ {
output += fmt.Sprintf("%d. Node %d %s\n", i+1, i+1, statusText(m.nodeStatuses[i]))
}
Expand Down
5 changes: 4 additions & 1 deletion ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ignitecmd

import (
"fmt"
"math/rand"
"strconv"
"time"
Expand Down Expand Up @@ -111,13 +112,15 @@ func testnetMultiNode(cmd *cobra.Command, session *cliui.Session) error {
NumValidator: strconv.Itoa(numVal),
NodeDirPrefix: cfg.MultiNode.NodeDirPrefix,
}
//initialized numVal node directories

fmt.Printf("Creating %s nodes \n\n", args.NumValidator)
err = c.TestnetMultiNode(cmd.Context(), args)
if err != nil {
return err
}

time.Sleep(7 * time.Second)
fmt.Println()

m := cmdmodel.NewModel(c.Name(), cmd.Context(), args)
_, err = tea.NewProgram(m).Run()
Expand Down

0 comments on commit 4a7c50d

Please sign in to comment.