-
Notifications
You must be signed in to change notification settings - Fork 156
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
redeemmultisigout: assigns fee below min allowed #2273
Comments
While on this topic, from what I've gathered dcrwallet currently doesn't allow to construct a multisig transaction with specified Amount (and/or Fee) ? Any knowledge sharing on how DCR holders work with multisigs is welcome! |
I've built another multisig txn adding 1000 Atoms on top, and now it looks like I have an issue with txn itself:
dcrdata error:
which suggests I'm doing multisig wrong ... any hints on how to debug this ? in particular I'm not sure how to covert
|
Yes, it's a bug in our fee estimation for pay-to-script-hash transactions. The script and pubkeys are not being included in the estimated size. The multisignature P2SH support was bolted on at the last minute to support the old stakepool (not VSP) code in which you created a ticket that is spendable by a vote by either your key or the stakepool's. Votes have no transaction fee, so this bug was never hit by that usecase. (revocations do pay fee but i think some fudging was being done in that particular codepath that would overpay fee) |
manually modifying the transaction returned by redeemmultisigout will not work. It adds signatures from that wallet before returning, but by modifying the transaction you have invalidated that signature. The only way I think you are going to be able to spend this output now is to do the whole process manually with createrawtransaction. You will have to do the fee estimation yourself too. |
Got it,
well, for future reference, I've managed to compare my signing procedure to some multisig tests in dcrd repo and tracked the issue down to dcrwallet being locked when I'm trying to sign multisig transaction, yet returning "success" claiming it has signed successfully with "complete": true:
possible improvement in that respect: decred/dcrd#3167. |
I suspect we are hitting the error at Line 4915 in a38abe2
The actual error is likely
|
A couple other alternatives we could try:
|
broke the patch up above into a PR in case that is easier to test. Feel free to comment on it there. |
Thanks for looking into it! First, to clarify what currently I believe it's: dcrwallet successfully provided ALL signatures it "owns" for this transaction, but transaction still might (or might not) need more signatures!
So, given that definition, it seems reasonable to treat the error we are after by setting That's to say that
I've tried your fix, it doesn't quite address my issue which is the following:
while in successful scenario it'll put signature in there too:
|
I've been playing with
redeemmultisigout
(and multi-sigs in general), when I'm trying to broadcast 2 of 2 signed transaction via https://testnet.dcrdata.org/decodetx I get:it seems
redeemmultisigout
assigns very low fee for such transaction ?Partially signed transaction (1 of 2) I get from
redeemmultisigout
looks like this:while fully signed (2 of 2) gets bigger and looks like this:
I've also tried to publish fully signed transaction with dcrwallet, it looks like it accepted the request but didn't actually publish this txn:
dcrwallet log:
Additional info about this multisig address:
The text was updated successfully, but these errors were encountered: