Skip to content

Commit bb20c3e

Browse files
committed
fixup: Address review feedback #1
1 parent 0f4a364 commit bb20c3e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

config/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131
AvalancheGoDataDirVar = "AVALANCHEGO_DATA_DIR"
3232
defaultUnexpandedDataDir = "$" + AvalancheGoDataDirVar
3333

34-
ProcessContextFilename = "process.json"
34+
DefaultProcessContextFilename = "process.json"
3535
)
3636

3737
var (
@@ -52,7 +52,7 @@ var (
5252
defaultSubnetConfigDir = filepath.Join(defaultConfigDir, "subnets")
5353
defaultPluginDir = filepath.Join(defaultUnexpandedDataDir, "plugins")
5454
defaultChainDataDir = filepath.Join(defaultUnexpandedDataDir, "chainData")
55-
defaultProcessContextPath = filepath.Join(defaultUnexpandedDataDir, ProcessContextFilename)
55+
defaultProcessContextPath = filepath.Join(defaultUnexpandedDataDir, DefaultProcessContextFilename)
5656
)
5757

5858
func deprecateFlags(fs *pflag.FlagSet) error {

tests/fixture/testnet/local/network.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func FindNextNetworkID(rootDir string) (uint32, string, error) {
5757
for {
5858
_, reserved := constants.NetworkIDToNetworkName[networkID]
5959
if reserved {
60+
networkID++
6061
continue
6162
}
6263

tests/fixture/testnet/local/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (n *LocalNode) WriteConfig() error {
130130
}
131131

132132
func (n *LocalNode) GetProcessContextPath() string {
133-
return filepath.Join(n.GetDataDir(), config.ProcessContextFilename)
133+
return filepath.Join(n.GetDataDir(), config.DefaultProcessContextFilename)
134134
}
135135

136136
func (n *LocalNode) ReadProcessContext() error {

0 commit comments

Comments
 (0)