-
Notifications
You must be signed in to change notification settings - Fork 94
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
Make SIGHASH_FORKID configurable with coins file #912
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.
Great, thanks for the PR!
@cipig Could you please test that LCC (Litecoincach) works with these changes?
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.
LCC now works fine: https://chainz.cryptoid.info/lcc/tx.dws?8dee0a26b4f5cc13084a5049140b9df27318568107f85ff6cf2a6c3f578356c0
Thanks for the fix.
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.
@shamardy I have just noticed that for the backward-compatibility purpose it's better to keep hard-code for BCH as follows:
If fork_id is set use it
If not set use 0x40 for BCH and 0x0 for all other coins
We might be in a situation when MM2 is updated but the coins config is not. So BCH transaction signing will be broken. The proposed change will mitigate this. Could you add it, please?
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.
LCC swaps still work fine after last changes
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.
Great, thanks for PR and testing 🙂
@cipig Could you update the coins repo, please? |
already done, BCH and LCC now have |
fixes #905