Skip to content

Commit

Permalink
--node-private-key-file dependency check with --security-module and w…
Browse files Browse the repository at this point in the history
…arning log (#873)

Signed-off-by: Usman Saleem <usman@usmans.info>
  • Loading branch information
usmansaleem authored May 7, 2020
1 parent ec6cc29 commit 8693770
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,12 @@ private void issueOptionWarnings() {
"--sync-mode",
!SyncMode.FAST.equals(syncMode),
singletonList("--fast-sync-min-peers"));

if (!securityModuleName.equals(DEFAULT_SECURITY_MODULE) && nodePrivateKeyFile != null) {
logger.warn(
"--node-private-key-file will have no effect unless --security-module={} is defined on the command line.",
DEFAULT_SECURITY_MODULE);
}
}

private BesuCommand configure() throws Exception {
Expand Down

0 comments on commit 8693770

Please sign in to comment.