Skip to content

Commit

Permalink
null safeguards
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <[email protected]>
  • Loading branch information
macfarla committed Dec 11, 2023
1 parent 4cefd7d commit b7545ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -3118,13 +3118,13 @@ private EthNetworkConfig updateNetworkConfig(final NetworkName network) {
if (!p2PDiscoveryOptionGroup.peerDiscoveryEnabled) {
logger.warn("Discovery disabled: bootnodes will be ignored.");
} else {
logger.info("Configured {} bootnodes.", p2PDiscoveryOptionGroup.bootNodes.size());
logger.debug("Bootnodes = {}", p2PDiscoveryOptionGroup.bootNodes);
logger.info("Configured {} bootnodes.", listBootNodes.size());
logger.debug("Bootnodes = {}", listBootNodes);
}
DiscoveryConfiguration.assertValidBootnodes(listBootNodes);
builder.setBootNodes(listBootNodes);
} else {
logger.debug("0 Bootnodes configured");
logger.info("0 Bootnodes configured");
}
return builder.build();
}
Expand Down

0 comments on commit b7545ba

Please sign in to comment.