Skip to content

Commit 56c61b6

Browse files
committed
simplificate default conf generation
1 parent 4d427ac commit 56c61b6

File tree

14 files changed

+119
-412
lines changed

14 files changed

+119
-412
lines changed

client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"sync"
1313
"time"
1414

15-
"github.com/ava-labs/avalanche-network-runner/local"
1615
"github.com/ava-labs/avalanche-network-runner/rpcpb"
16+
"github.com/ava-labs/avalanche-network-runner/utils/constants"
1717
"github.com/ava-labs/avalanchego/utils/logging"
1818
"go.uber.org/zap"
1919
"google.golang.org/grpc"
@@ -114,7 +114,7 @@ func (c *client) RPCVersion(ctx context.Context) (*rpcpb.RPCVersionResponse, err
114114
}
115115

116116
func (c *client) Start(ctx context.Context, execPath string, opts ...OpOption) (*rpcpb.StartResponse, error) {
117-
ret := &Op{numNodes: local.DefaultNumNodes}
117+
ret := &Op{numNodes: constants.DefaultNumNodes}
118118
ret.applyOpts(opts)
119119

120120
req := &rpcpb.StartRequest{

cmd/control/control.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"time"
1616

1717
"github.com/ava-labs/avalanche-network-runner/client"
18-
"github.com/ava-labs/avalanche-network-runner/local"
1918
"github.com/ava-labs/avalanche-network-runner/rpcpb"
2019
"github.com/ava-labs/avalanche-network-runner/utils"
2120
"github.com/ava-labs/avalanche-network-runner/utils/constants"
@@ -187,7 +186,7 @@ func newStartCommand() *cobra.Command {
187186
cmd.PersistentFlags().Uint32Var(
188187
&numNodes,
189188
"number-of-nodes",
190-
local.DefaultNumNodes,
189+
constants.DefaultNumNodes,
191190
"number of nodes of the network",
192191
)
193192
cmd.PersistentFlags().StringVar(

local/default/node1/flags.json

-4
This file was deleted.

local/default/node2/flags.json

-4
This file was deleted.

local/default/node3/flags.json

-4
This file was deleted.

local/default/node4/flags.json

-4
This file was deleted.

local/default/node5/flags.json

-4
This file was deleted.

0 commit comments

Comments
 (0)