-
Notifications
You must be signed in to change notification settings - Fork 130
fixes #233 Allow nodekey to be specified separately to --datadir #234
fixes #233 Allow nodekey to be specified separately to --datadir #234
Conversation
should the --nodekey param be the actual file instead of a directory that contains "./key"? |
You're right. I will check that tomorrow. I did it this way because I was focused in using the datadir as the default value using a Path type, but it's easy to do it the way you say. |
…asMassart/pantheon into feature/233_nodekey_option
@ekellstrand change from Path to File done |
Can we rename this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving the duplication in finding the default 'key' file is the only issue - otherwise looks good.
.../src/test/java/tech/pegasys/pantheon/tests/acceptance/dsl/node/ThreadPantheonNodeRunner.java
Outdated
Show resolved
Hide resolved
pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java
Outdated
Show resolved
Hide resolved
- Centralised (sic) the key default file into a static method in KeyPairUtils - Changed the file equality test as I forgot the file type is comparable... no comment...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
PR description
added a --nodekey option to the CLI to be able to define a separate path for the private key when starting pantheon.
Fixed Issue(s)
fixes #233