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
Fix generation of bonds and wallets file #3338
Conversation
@nzpr Please add to the description of PR a short summary of what changes are done in the code. This should be the complement to linked issue. If there is no linked issue, PR should also contain the info about the problem it solves. |
2c4c64d
to
f305346
Compare
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, just a few minor comments.
casper/src/main/scala/coop/rchain/casper/util/BondsParser.scala
Outdated
Show resolved
Hide resolved
casper/src/main/scala/coop/rchain/casper/util/VaultParser.scala
Outdated
Show resolved
Hide resolved
casper/src/main/scala/coop/rchain/casper/util/VaultParser.scala
Outdated
Show resolved
Hide resolved
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
bors merge |
3338: Fix generation of bonds and wallets file r=nzpr a=nzpr Some old PR refactoring config e2bbe2f broken autogeneration of bonds file and made node require wallets file without any fallback. This PR fixes user experience. **The rule for bonds:** if no bonds file at path specified (or default `genesis_path/bonds.txt` if nothing specified) does not exist - node will generate one for user. If bonds file exists but is empty node will report error and exit. **The rule for wallets:** if no wallets file - node reports that genesis won't have any genesis vault. No exception possibly thrown. Empty wallets file is allowed. closes #3008 Co-authored-by: nutzipper <1746367+nzpr@users.noreply.github.com>
Build failed: |
bors merge |
3338: Fix generation of bonds and wallets file r=nzpr a=nzpr Some old PR refactoring config e2bbe2f broken autogeneration of bonds file and made node require wallets file without any fallback. This PR fixes user experience. **The rule for bonds:** if no bonds file at path specified (or default `genesis_path/bonds.txt` if nothing specified) does not exist - node will generate one for user. If bonds file exists but is empty node will report error and exit. **The rule for wallets:** if no wallets file - node reports that genesis won't have any genesis vault. No exception possibly thrown. Empty wallets file is allowed. closes #3008 Co-authored-by: nutzipper <1746367+nzpr@users.noreply.github.com>
Build failed: |
bors merge |
Build succeeded: |
Some old PR refactoring config e2bbe2f broken autogeneration of bonds file and made node require wallets file without any fallback.
This PR fixes user experience.
The rule for bonds: if no bonds file at path specified (or default
genesis_path/bonds.txt
if nothing specified) does not exist - node will generate one for user. If bonds file exists but is empty node will report error and exit.The rule for wallets: if no wallets file - node reports that genesis won't have any genesis vault. No exception possibly thrown. Empty wallets file is allowed.
closes #3008