-
Notifications
You must be signed in to change notification settings - Fork 292
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
txscript: return multisig signing error for no-op #3167
base: master
Are you sure you want to change the base?
Conversation
// possible. It returns the generated script and a boolean if the script | ||
// fulfills the contract (i.e. nrequired signatures are provided). Since it is | ||
// arguably legal to not be able to sign any of the outputs, no error is | ||
// returned. | ||
// possible. It returns the generated script if 1 or more signature was provided, | ||
// otherwise it returns detailed error (while some parts of that error message | ||
// are expected artifacts of execution others might be useful when debugging | ||
// signing issues). |
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.
Since it is
// arguably legal to not be able to sign any of the outputs, no error is
// returned.
Pointing out this comment, I might be missing something, but I don't see why somebody would try to sign multisig transaction unless he expects at least 1 signature to succeed.
I don't think this can be changed without causing a major breaking change to the wallet RPC server. It definitely can't be changed without also cause a major version bump to the Currently, the RPC can be used to determine if a multisig transaction is fully signed by just attempting to sign it and checking the "complete" flag in the result. That would no longer be possible with the proposed change. Personally, I don't think this should be changed because it would cause a lot of churn for very little gain and also would break the aforementioned which I'm pretty sure various things depend on. That said, since @jrick is the primary person who works on wallet, his feedback would be good to have on this. |
There's a patch on the dcrwallet issue that probably solves this better without making this incompatible change. |
Yeah. I thought this might not be worth the trouble ... still I hope pointing the issue out doesn't hurt, somebody might find this discovery valuable later on. Feel free to close, but I'd keep it open until we find resolution on dcrwallet side. |
Just something I noticed when fiddling with multisigs,
if that change makes sense (after feedback) I'll finish this draft.
All Submissions:
New Feature Submissions:
Bug Fixes:
Changes to Core Features: