Skip to content

Commit

Permalink
fix condition so as to not having to always specify global chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Dec 12, 2022
1 parent 0593a33 commit c8d6f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func (ln *localNetwork) setBlockchainConfigFiles(
for i, chainSpec := range chainSpecs {
chainAlias := blockchainTxs[i].ID().String()
// update config info. set defaults and node specifics
if chainSpec.ChainConfig != nil {
if chainSpec.ChainConfig != nil || len(chainSpec.PerNodeChainConfig) != 0 {
created = true
ln.chainConfigFiles[chainAlias] = string(chainSpec.ChainConfig)
for nodeName := range ln.nodes {
Expand Down

0 comments on commit c8d6f50

Please sign in to comment.