Skip to content
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

Merged
merged 1 commit into from Mar 3, 2021
Merged

Conversation

nzpr
Copy link
Collaborator

@nzpr nzpr commented Feb 26, 2021

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

@tgrospic
Copy link
Collaborator

@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.

@nzpr nzpr force-pushed the fix-wallets branch 2 times, most recently from 2c4c64d to f305346 Compare February 26, 2021 19:31
@nzpr nzpr added the bug-fix label Feb 26, 2021
Copy link
Collaborator

@tgrospic tgrospic left a 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.

@tgrospic tgrospic added this to In progress in Core team via automation Mar 2, 2021
@tgrospic tgrospic moved this from In progress to Review in progress in Core team Mar 2, 2021
Core team automation moved this from Review in progress to Reviewer approved Mar 3, 2021
Copy link
Collaborator

@zsluedem zsluedem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nzpr
Copy link
Collaborator Author

nzpr commented Mar 3, 2021

bors merge

bors bot added a commit that referenced this pull request Mar 3, 2021
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>
@bors
Copy link
Contributor

bors bot commented Mar 3, 2021

Build failed:

@nzpr
Copy link
Collaborator Author

nzpr commented Mar 3, 2021

bors merge

bors bot added a commit that referenced this pull request Mar 3, 2021
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>
@bors
Copy link
Contributor

bors bot commented Mar 3, 2021

Build failed:

@nzpr
Copy link
Collaborator Author

nzpr commented Mar 3, 2021

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 3, 2021

Build succeeded:

@bors bors bot merged commit b159823 into rchain:dev Mar 3, 2021
Core team automation moved this from Reviewer approved to Done Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Node does not create random bonds file
3 participants