-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cannot call FundPSBT
with a psbt with only a zero value OP_RETURN output
#6386
Comments
The error is coming from here: https://github.com/btcsuite/btcwallet/blob/master/wallet/psbt.go#L54 |
Here is the psbt decoded:
|
Okay, this is probably a bug in the golang PSBT library... It always expects a TX to be in the witness format, but this one doesn't seem to be. Weird that |
I made it in bitcoin-s. BIP 174 states it shouldn't be in the witness seralization
|
Oh, thanks for finding that reference, I wasn't aware of that. Then the code in https://github.com/btcsuite/btcd/blob/master/btcutil/psbt/psbt.go#L217 is incorrect. Could you open an issue in |
(btcd PR was merged, but lnd needs to be updated) |
Fixes lightningnetwork#6386. Bumps the btcutil/psbt library to the latest version v1.1.3 that fixes an issue with de-serializing a PSBT that contains an unsigned transaction with no inputs.
When creating trying to fund a psbt that creates an
OP_RETURN
with 0 value it gives the errorwallet couldn't fund PSBT: PSBT packet must contain at least one input or output
. If I change the output to be 1 satoshi, it will work.The text was updated successfully, but these errors were encountered: