New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PCLI command to sign account balance files #6264
Conversation
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Show resolved
Hide resolved
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Show resolved
Hide resolved
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
This reverts commit 010644e.
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.
Some consistency between System.{out|err}
vs logging vs throwing an exception never handled would be an improvement (especially as this tool will be used in a production environment by professionals (who aren't developers).
Otherwise just minor comments.
hedera-node/cli-clients/src/main/java/com/hedera/services/cli/sign/SignUtils.java
Outdated
Show resolved
Hide resolved
hedera-node/cli-clients/src/main/java/com/hedera/services/cli/sign/SignUtils.java
Outdated
Show resolved
Hide resolved
hedera-node/cli-clients/src/main/java/com/hedera/services/cli/sign/SignUtils.java
Show resolved
Hide resolved
hedera-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceType.java
Outdated
Show resolved
Hide resolved
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Show resolved
Hide resolved
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Show resolved
Hide resolved
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Show resolved
Hide resolved
hedera-node/cli-clients/src/main/java/com/hedera/services/cli/sign/SignUtils.java
Show resolved
Hide resolved
...-node/cli-clients/src/main/java/com/hedera/services/cli/sign/AccountBalanceSigningUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
4073d24
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.
The is a command line tool. For production use yes. But a CLI, not a server we're depending on. I think it is ok for it to be rough around the edges and get cleaned up in a very closely-following PR. Am I alone in this?
I agree with you but this tool was decided by Nathan as production on the channel and we need to merge it today, it is an endless story let's try to focus on merging it |
remove the logging imports Co-authored-by: Quan Nguyen <quan@swirldslabs.com> Signed-off-by: Lev Povolotsky <16233475+povolev15@users.noreply.github.com>
@david-bakin-sl, what are the things that are rough around the edges that you would like fixed? We should get those done today before merging this in. |
@iwsimon and @povolev15, this also needs tests before it can be merged. |
As far as I'm concerned there's nothing "rough around the edges" that I would like fixed. I've done the "LGTM" thing about 10 times already on this review. Which is a PR that we're all waiting for. But changes are being consistently suggested for this first release of a command line tool. I was trying to suggest (apparently badly) that we just get it in now and fix it when the pressure to get a release tagged is off. Because, even if it will be used in production immediately: command line tool. Yes it may blow up (and emit a stackdump). Yes the command order might not match what's already there. And so on. But command line tool not 24/7/365 6-nines service. That's all I meant. |
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 one more time for luck!
(Oh thank goodness that was a bad button press!) (I've done it myself...) |
SonarCloud Quality Gate failed. |
Description:
Related issue(s):
Fixes #5820
To run the test, use the command:
pcli account-balance sign keyFile keyFilePassword keyAlias -d=signedFiles -p=toBeSignedFile
Notes for reviewer:
Checklist