lncli: Allow lncli to read binary PSBTs from a file

BIP 174 states that PSBTs can be encoded in 2 formats:
- plain text as base64
- in a file as binary

With this change, lncli will also try to read a PSBT as binary
This commit is contained in:
Antoni Spaanderman committed 2022-11-17 12:41:46 +01:00
1 parent d5648e9f80
commit ed112681f5
2 files changed
+51 -24

No files matched your search

@@ -181,6 +181,9 @@ certain large transactions](https://github.com/lightningnetwork/lnd/pull/7100).
the invoice payment request together with the prefix, which throws checksum
error when pasting it to the CLI.
* [Allow lncli to read binary PSBTs](https://github.com/lightningnetwork/lnd/pull/7122)
from a file during PSBT channel funding flow to comply with [BIP 174](https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#specification)
## Code Health
* [test: use `T.TempDir` to create temporary test
@@ -251,6 +254,7 @@ to refactor the itest for code health and maintenance.
* Alejandro Pedraza
* andreihod
* Antoni Spaanderman
* Carla Kirk-Cohen
* Conner Babinchak
* cutiful