txscript: return multisig signing error for no-op#3167
txscript: return multisig signing error for no-op#3167norwnd wants to merge 1 commit intodecred:masterfrom
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.
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: