Skip to content

Commit c35a474

Browse files
committed
avagoConstans and walletPrivateKey
1 parent 9496a1b commit c35a474

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cmd/control/control.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"github.com/ava-labs/avalanchego/utils/logging"
2323
"github.com/spf13/cobra"
2424
"go.uber.org/zap"
25+
26+
avagoConstants "github.com/ava-labs/avalanchego/utils/constants"
2527
)
2628

2729
func init() {
@@ -108,6 +110,7 @@ var (
108110
force bool
109111
inPlace bool
110112
fuji bool
113+
walletPrivateKey string
111114
)
112115

113116
func setLogs() error {
@@ -270,6 +273,12 @@ func newStartCommand() *cobra.Command {
270273
false,
271274
"true to set all nodes to join fuji network",
272275
)
276+
cmd.PersistentFlags().StringVar(
277+
&walletPrivateKey,
278+
"wallet-private-key",
279+
"",
280+
"[optional] funding wallet private key",
281+
)
273282
return cmd
274283
}
275284

@@ -281,7 +290,7 @@ func startFunc(*cobra.Command, []string) error {
281290
defer cli.Close()
282291

283292
if fuji {
284-
networkID = 5
293+
networkID = avagoConstants.FujiID
285294
}
286295
opts := []client.OpOption{
287296
client.WithNumNodes(numNodes),

0 commit comments

Comments
 (0)