-
Notifications
You must be signed in to change notification settings - Fork 311
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
MissingNonWitnessUtxo even before signing #1548
Comments
Would it be possible to come up with a test or code snippet that you believe should work if the bug was resolved? |
Here: https://github.com/stevenroose/bdk/tree/repro-foreign-utxo So basically, removing that "only_witness_utxo" makes the build step fail. This might be intended behavior? But it's weird that if you don't indicate anything it will complain that non-witness utxo data is missing and you fix it by saying that you will not provide non-witness utxo data? Before, only the signer would error when there was no non-witness utxo data and you would make the signer not error by adding the |
Like, in the very least, the "only_witness_utxo" method should be re-documented to say "do not require non-witness utxo data" instead of "do not provide non-witness utxo data". Because for foreign utxos, without that method, the builder also only provides witness utxo data but then somehow it is a problem while if you specifically tell you to do the same thing, it is not a problem. I hope you can see what I'm saying. It might just be ok like this I guess, but it was a regression that wasn't like this before. Also, you might want to provide non-witness utxo data for non-foreign inputs for example. Some signers might want/need them only for certain inputs so you can ignore them on the other ones. We use the foreign inputs for fee anchors and their value is negligible and their satisfaction is just the |
As a followup question do you think this logic should be changed to allow both taproot and segwitv0 inputs to not have a bdk/crates/wallet/src/wallet/mod.rs Lines 2170 to 2180 in 7969898
|
When you provide
witness_utxo
but notnon_witness_utxo
, previously BDK would complain at sign-time. The solution was in theSignOptions
:But now I am already getting this error at tx creation time when calling
TxBuilder::finish
.I see that
TxBuilder
has aonly_witness_utxo
option now, but only affects TxBuilder's internal behavior and doesn't resolve the error. I am getting this error when not settingonly_witness_utxo
and by adding foreign inputs.The text was updated successfully, but these errors were encountered: