File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import (
22
22
"github.com/ava-labs/avalanchego/utils/logging"
23
23
"github.com/spf13/cobra"
24
24
"go.uber.org/zap"
25
+
26
+ avagoConstants "github.com/ava-labs/avalanchego/utils/constants"
25
27
)
26
28
27
29
func init () {
@@ -108,6 +110,7 @@ var (
108
110
force bool
109
111
inPlace bool
110
112
fuji bool
113
+ walletPrivateKey string
111
114
)
112
115
113
116
func setLogs () error {
@@ -270,6 +273,12 @@ func newStartCommand() *cobra.Command {
270
273
false ,
271
274
"true to set all nodes to join fuji network" ,
272
275
)
276
+ cmd .PersistentFlags ().StringVar (
277
+ & walletPrivateKey ,
278
+ "wallet-private-key" ,
279
+ "" ,
280
+ "[optional] funding wallet private key" ,
281
+ )
273
282
return cmd
274
283
}
275
284
@@ -281,7 +290,7 @@ func startFunc(*cobra.Command, []string) error {
281
290
defer cli .Close ()
282
291
283
292
if fuji {
284
- networkID = 5
293
+ networkID = avagoConstants . FujiID
285
294
}
286
295
opts := []client.OpOption {
287
296
client .WithNumNodes (numNodes ),
You can’t perform that action at this time.
0 commit comments