Skip to content

Commit

Permalink
Merge pull request #351 from ava-labs/fix-default-node-maps-init
Browse files Browse the repository at this point in the history
make loadConfig to fix nil map panics
  • Loading branch information
felipemadero authored Nov 15, 2022
2 parents ceed37d + 6fdc97e commit 3330b17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,13 @@ func (ln *localNetwork) loadConfig(ctx context.Context, networkConfig network.Co
ln.flags = networkConfig.Flags
ln.binaryPath = networkConfig.BinaryPath
ln.chainConfigFiles = networkConfig.ChainConfigFiles
if ln.chainConfigFiles == nil {
ln.chainConfigFiles = map[string]string{}
}
ln.upgradeConfigFiles = networkConfig.UpgradeConfigFiles
if ln.upgradeConfigFiles == nil {
ln.upgradeConfigFiles = map[string]string{}
}

// Sort node configs so beacons start first
var nodeConfigs []node.Config
Expand Down

0 comments on commit 3330b17

Please sign in to comment.