-
Notifications
You must be signed in to change notification settings - Fork 29
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
Create command line arguments to set genesis staking keys, VRF keys, and pool Id #1092
Conversation
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.
A couple of initial observations:
test/functional/blockprod_generate_pos_blocks_rand_genesis_keys.py
Outdated
Show resolved
Hide resolved
c3cf9bb
to
c696de7
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.
Some more comments about input parsing below
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.
Agree with Lukas that it makes sense to make GenesisStakingSettings
a proper struct with fields and parsing and decoding implemented in the constructor.
546e024
to
78a02c3
Compare
test/functional/blockprod_generate_pos_blocks_rand_genesis_keys.py
Outdated
Show resolved
Hide resolved
test/functional/blockprod_generate_pos_blocks_rand_genesis_keys.py
Outdated
Show resolved
Hide resolved
This is looking fine. I'll review again after addressing the comments. |
78a02c3
to
d52936a
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.
Looks good. A couple more minor suggestions here:
test/functional/blockprod_generate_pos_blocks_rand_genesis_keys.py
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.
Besides the comments, I think this is looking shiny enough.
d52936a
to
139bd89
Compare
@@ -25,6 +25,8 @@ | |||
|
|||
import random, time | |||
|
|||
COIN = 100_000_000_000 |
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.
This should be a global definition somewhere. I bet there's already a definition somewhere for bitcoin. We shouldn't redefine it for every test.
5178993
to
5e548d8
Compare
This is the last item for #1004