From d765e73e5778391ec9b9be8fbee946485bf77a0d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Sun, 26 Apr 2020 21:05:13 +0200 Subject: [PATCH 1/2] lncli: add PSBT publish warning --- cmd/lncli/cmd_open_channel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/lncli/cmd_open_channel.go b/cmd/lncli/cmd_open_channel.go index d86b65cf..27b27536 100644 --- a/cmd/lncli/cmd_open_channel.go +++ b/cmd/lncli/cmd_open_channel.go @@ -33,6 +33,10 @@ If you are using a wallet that can fund a PSBT directly (currently not possible with bitcoind), you can use this PSBT that contains the same address and amount: %s +!!! WARNING !!! +DO NOT PUBLISH the finished transaction by yourself or with another tool. +lnd MUST publish it in the proper funding flow order OR THE FUNDS CAN BE LOST! + Paste the funded PSBT here to continue the funding flow. Base64 encoded PSBT: ` From fb17e9b863109669369773365ce409afd435f66b Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Sun, 26 Apr 2020 21:05:24 +0200 Subject: [PATCH 2/2] docs: add PSBT publish warning --- docs/psbt.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/psbt.md b/docs/psbt.md index 3d51dbc7..17a44ca8 100644 --- a/docs/psbt.md +++ b/docs/psbt.md @@ -34,6 +34,15 @@ about the pending channel. If the remote node is an `lnd` node, we know it's after 10 minutes. **So as long as the whole process takes less than 10 minutes, everything should work fine.** +### Safety warning + +**DO NOT PUBLISH** the finished transaction by yourself or with another tool. +lnd MUST publish it in the proper funding flow order **OR THE FUNDS CAN BE +LOST**! + +This is very important to remember when using wallets like `Wasabi` for +instance, where the "publish" button is very easy to hit by accident. + ### 1. Use the new `--psbt` flag in `lncli openchannel` The new `--psbt` flag in the `openchannel` command starts an interactive dialog @@ -201,7 +210,15 @@ $ bitcoin-cli walletprocesspsbt cHNidP8BAH0CAAAAAbxLLf9+AYfqfF69QAQuETnL6cas7GDi ``` Interpreting the output, we now have a complete, final, and signed transaction -inside the PSBT. Let's give it to `lncli` to continue: +inside the PSBT. + +**!!! WARNING !!!** + +**DO NOT PUBLISH** the finished transaction by yourself or with another tool. +lnd MUST publish it in the proper funding flow order **OR THE FUNDS CAN BE +LOST**! + +Let's give it to `lncli` to continue: ```bash ...