-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: do not use extra_args for enforced DashTestFramework arguments #6283
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
Conversation
|
This pull request has conflicts, please rebase. |
8a42cde to
8b3c83e
Compare
| self.extra_args[0] += ["-sporkkey=cP4EKFyJsHT39LDqgdcB43Y3YXjNyjb5Fuas1GQSeAtjnZWmZEQK"] | ||
| for i in range(0, num_nodes): | ||
| self.extra_args[i].append("-dip3params=2:2") | ||
| self.extra_args_from_options += ["-sporkkey=cP4EKFyJsHT39LDqgdcB43Y3YXjNyjb5Fuas1GQSeAtjnZWmZEQK", "-dip3params=2:2"] |
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.
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.
Why exactly sporkkey can't be specified for all nodes? It's out of scope for all tests except "feature_sporks.py" to care about sporks functionally
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.
You can do that. But you shouldn't :D
…=1 is default option
…nt for dashd restart Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com>
8b3c83e to
6d4a782
Compare
UdjinM6
left a 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.
utACK 6d4a782
PastaPastaPasta
left a 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.
utACK 6d4a782
Issue being fixed or feature implemented
DashTestFramework requires 2 arguments for dashd which are lost every dashd restart:
sporkkeyanddip3params.Without this PR you need to pass this arguments manually every time when you restart dashd in functional tests.
What was done?
Make dash specific args
sporkkeyanddip3paramsresilient for dashd restartIt makes workarounds such as these no more needed:
Also there's some cleanup for
wallet_mnemonicbits.pyto removeusehd=1which is not required, and it has been discovered during revising all node's restarts related code.How Has This Been Tested?
Removed workaround from
rpc_net.pyand run functional testsBreaking Changes
N/A
Checklist: