dcrwallet icon indicating copy to clipboard operation
dcrwallet copied to clipboard

fundrawtransaction fails when transaction already includes any number of inputs

Open jrick opened this issue 5 years ago • 0 comments

This method should still be usable even when the transaction already contains inputs, by adding more inputs (as needed) and adding a change output for the appropriate fee.

Since part of the reason we want this to work is for a multisig workflow through the json-rpc interface, we also want size estimation working properly when spending p2sh outputs where we know the redeem script and how large the redemption will be (as is the case for multisig). This size estimation is a prerequisite for determining the correct transaction fee and change output value.

jrick avatar Dec 09 '20 19:12 jrick