-
Notifications
You must be signed in to change notification settings - Fork 725
[wallet] Remove now unneeded stake P2PKH->P2PK output forced conversion #2299
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
random-zebra
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.
This is not taking into account regtest net.
v5 network upgrade is not active by default there.
If we remove the conversion to P2PK inputs, the block validity checks will fail before v5 NU enforcement.
We first need to relax the rules about the block signature (always accepting P2PKH coinstake outs), which is done inside #2295.
With that change, all the tests would be passing here.
So, imo either rebase this PR on top of #2295, or simply add these 3 commits there.
|
Yeah, i did this one with my head on #2295. |
7af40e5 to
12648c6
Compare
random-zebra
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 12648c6af92c0ce62d96a55b27e805783171debc
12648c6 to
50ee79d
Compare
|
Done, rebased on master. |
random-zebra
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.
re-utACK 50ee79d after rebase
Fuzzbawls
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 50ee79d
Since v5 activation, #1700 is active and there is no need to continue checking for the v5 NU enforcement during the coinstake generation in the mining process. This PR removes the extra validations and script conversion inside the wallet.