<p>I cannot answer all of your questions, but I can give you some help.</p>
<p>From the bitcoin point of view, you can always spend a transaction output (TXO) if it is not spent already by some confirmed transaction.
That said, if you opened a channel but the funding transaction is not confirmed you can spend the TXO that funded the channel, but I don't know how lightningd would react to this.</p>
<p>You said you have closed the channel. If you funds are still stuck it means both the funding channel and close channel transactions are unconfirmed in the mempool.</p>
<p>I would try to spend the TXO in the close TX in a child-pays-for-parent fashion. However, when trying to reproduce that scenario in regtest I find troubles with the clightning user interface.</p>
<p>I did the following to simulate your situation:</p>
<ol>
<li>I create a channel with peer</li>
</ol>
<pre><code>$ l1-cli fundchannel 0397d48baf82cf731fc8967c16e3d9575f10606bdf481738eb9cafeda29d0e3d67 1000000sat
{
   &quot;tx&quot;: &quot;02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff0240420f000000000022002075e9a102dbb348646e2f1804cc3cfec9edb6f5551a074f33a615f29cbd45eeaa4c5bd70500000000160014deb1f4e1123694ca3e418cefe496d3c26b0ddde202473044022068b402d53f16204324b28607eca046a4f7121d8f83c62e17de9c9131e307b5cf022077a3aa538469f9e0983cce98c3de4c5427731b398ed395d9614cf7b54d4f5cdd012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e73000000&quot;,
   &quot;txid&quot;: &quot;11b8967c62c584da9bbba5243d61bc95b4da210760bca04adb7c349319edba19&quot;,
   &quot;channel_id&quot;: &quot;9dfe0df4c502c31e92c266bfa28af18d6f6d11a0b0197b838797f8c990625168&quot;,
   &quot;outnum&quot;: 0
}
</code></pre>
<ol start="2">
<li>I closed the channel</li>
</ol>
<pre><code>$ l1-cli -k close id=9dfe0df4c502c31e92c266bfa28af18d6f6d11a0b0197b838797f8c990625168 
# Sending closing fee offer 139sat, with range 139sat-183sat
# Received closing fee offer 139sat, with range 139sat-1000000sat
{
   &quot;tx&quot;: &quot;020000000119baed1993347cdb4aa0bc600721dab495bc613d24a5bb9bda84c5627c96b8110000000000ffffffff01b5410f00000000001600141b420a80810dda8fd3621e6ba4ce14ce85b6877e00000000&quot;,
   &quot;txid&quot;: &quot;e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699&quot;,
   &quot;type&quot;: &quot;mutual&quot;
}
</code></pre>
<p>At this point both the funding (<code>11b896...</code>) and settlement (<code>e6a7d6cc...</code>) transactions are in the mempool and unconfirmed.
The situation is shown in the diagram below</p>
<pre><code>tx:c312c...(confirmed) ---&gt; tx:11b89... (funding tx unconfirmed) ---&gt; tx:e6a7d6cc... (settlement, unconfirmed)
</code></pre>
<h1>Solution 1 (that doesn't work)</h1>
<p>My idea is to spend the settlement output with a higher fee.
However, I have problems with <code>lightning-cli</code> to get this working.</p>
<p>If I try to spend the settlement output, which is controlled by my wallet:</p>
<pre><code>$ l1-cli -k txprepare outputs=&quot;[{\&quot;bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\&quot;:\&quot;all\&quot;}]&quot; utxos=&quot;[\&quot;e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699:0\&quot;]&quot; feerate=100
{
   &quot;code&quot;: -32602,
   &quot;message&quot;: &quot;Unknown UTXO e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699:0&quot;
}
</code></pre>
<p>So probably lightnind is saying: &quot;that UTXO is not in the blockchain, I cannot spend it&quot;.</p>
<p>I tried a work-around, creating a PSBT with <code>bitcoin-cli</code>:</p>
<pre><code>$ bt-cli createpsbt &quot;[{\&quot;txid\&quot;:\&quot;e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699\&quot;,\&quot;vout\&quot;:0}]&quot; &quot;[{\&quot;bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\&quot;:0.00900000}]&quot;
cHNidP8BAFICAAAAAZk2BJxZ5DuIl6Um1l1p7hjM2bkYmj4aSPfwYAnM1qfmAAAAAAD9////AaC7DQAAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
</code></pre>
<p>and then signing it with <code>lightning-cli</code>:</p>
<pre><code>$ l1-cli signpsbt cHNidP8BAFICAAAAAZk2BJxZ5DuIl6Um1l1p7hjM2bkYmj4aSPfwYAnM1qfmAAAAAAD9////AaC7DQAAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
{
   &quot;code&quot;: -1,
   &quot;message&quot;: &quot;No wallet inputs to sign&quot;
}
</code></pre>
<p>It seems that clightning doesn't like to sign transactions inputs that are not confirmed.</p>
<h1>Solution 2 (the ugly)</h1>
<p>I would spend the TXO that funded the channel since the funding transaction is unconfirmed.</p>
<pre><code>$ l1-cli -k txprepare outputs=&quot;[{\&quot;bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\&quot;:\&quot;all\&quot;}]&quot; utxos=&quot;[\&quot;c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee:0\&quot;]&quot; feerate=100
{
   &quot;code&quot;: -32602,
   &quot;message&quot;: &quot;UTXO c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee:0 already reserved&quot;
}
</code></pre>
<p>So, <code>clightning</code> sees that even though that TXO is not confirmed it is spent by a channel funding.</p>
<p>Let me try forcing again with bitcoin core PSBT:</p>
<pre><code>$ bt-cli createpsbt &quot;[{\&quot;txid\&quot;:\&quot;c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee\&quot;,\&quot;vout\&quot;:0}]&quot; &quot;[{\&quot;bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\&quot;:0.98900000}]&quot;
cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
</code></pre>
<p>and then get a signature from clightning wallet:</p>
<pre><code>$  l1-cli signpsbt cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
{
   &quot;signed_psbt&quot;: &quot;cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAEBHyae5gUAAAAAFgAUrxY3yj79dai67Z9mJ4hHAjQSIzMiAgL1CT+P1myQn8cu5VbnDLA4rpKwP9G1bXEM9Ts8wBmGjkcwRAIgMdOln+3Bzrm5lWqUrBbtEleqYgclYdwSadbs7T8V+18CIFTRsrlwhdZrvrG+UiCGf44+TJrF+Oqj4w+hLFmucBcfASIGAvUJP4/WbJCfxy7lVucMsDiukrA/0bVtcQz1OzzAGYaOCK8WN8oAAAAAACICAoqr3sVLia14vPyrtYQRxA+wniCHWDV34AMh8C5p18haCDe84BUHAAAAAA==&quot;
}
</code></pre>
<p>OK, so this time we have a signature, now we can construct the transaction</p>
<pre><code>$ bt-cli finalizepsbt &quot;cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAEBHyae5gUAAAAAFgAUrxY3yj79dai67Z9mJ4hHAjQSIzMiAgL1CT+P1myQn8cu5VbnDLA4rpKwP9G1bXEM9Ts8wBmGjkcwRAIgMdOln+3Bzrm5lWqUrBbtEleqYgclYdwSadbs7T8V+18CIFTRsrlwhdZrvrG+UiCGf44+TJrF+Oqj4w+hLFmucBcfASIGAvUJP4/WbJCfxy7lVucMsDiukrA/0bVtcQz1OzzAGYaOCK8WN8oAAAAAACICAoqr3sVLia14vPyrtYQRxA+wniCHWDV34AMh8C5p18haCDe84BUHAAAAAA==&quot;
{
  &quot;hex&quot;: &quot;02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff012018e5050000000016001437bce01524332f09e20e0ff5640033c54bba669f02473044022031d3a59fedc1ceb9b9956a94ac16ed1257aa62072561dc1269d6eced3f15fb5f022054d1b2b97085d66bbeb1be5220867f8e3e4c9ac5f8eaa3e30fa12c59ae70171f012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e00000000&quot;,
  &quot;complete&quot;: true
}
</code></pre>
<p>and broadcast it</p>
<pre><code>$ bt-cli sendrawtransaction 02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff012018e5050000000016001437bce01524332f09e20e0ff5640033c54bba669f02473044022031d3a59fedc1ceb9b9956a94ac16ed1257aa62072561dc1269d6eced3f15fb5f022054d1b2b97085d66bbeb1be5220867f8e3e4c9ac5f8eaa3e30fa12c59ae70171f012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e00000000
41304c4e992a0718d29cf7c46adb0f361c319d31b92eeb8d7dbc811aebc2b39f
</code></pre>
<p>If the miners include the last transaction <code>41304...</code>, then the funding <code>11b896...</code> and settlement <code>e6a7...</code> will be invalid. But you still have your funds.</p>
<pre><code>tx:c312c...(confirmed) -X-&gt; tx:11b89... (funding tx unconfirmed) -X-&gt; tx:e6a7d6cc... (settlement, unconfirmed)
|
+---&gt; tx:41304... (confirmed)
</code></pre>
<h2>Side effects</h2>
<p>clightning sees the new funds, but it is still waiting for the previous transactions to confirm:</p>
<pre><code>$ l1-cli listfunds
{
   &quot;outputs&quot;: [
      {
         &quot;txid&quot;: &quot;11b8967c62c584da9bbba5243d61bc95b4da210760bca04adb7c349319edba19&quot;,
         &quot;output&quot;: 1,
         &quot;amount_msat&quot;: 97999692000,
         &quot;scriptpubkey&quot;: &quot;0014deb1f4e1123694ca3e418cefe496d3c26b0ddde2&quot;,
         &quot;address&quot;: &quot;bcrt1qm6clfcgjx62v50jp3nh7f9kncf4smh0z2v5q3d&quot;,
         &quot;status&quot;: &quot;unconfirmed&quot;,
         &quot;reserved&quot;: false
      },
      {
         &quot;txid&quot;: &quot;41304c4e992a0718d29cf7c46adb0f361c319d31b92eeb8d7dbc811aebc2b39f&quot;,
         &quot;output&quot;: 0,
         &quot;amount_msat&quot;: 98900000000,
         &quot;scriptpubkey&quot;: &quot;001437bce01524332f09e20e0ff5640033c54bba669f&quot;,
         &quot;address&quot;: &quot;bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g&quot;,
         &quot;status&quot;: &quot;confirmed&quot;,
         &quot;blockheight&quot;: 116,
         &quot;reserved&quot;: false
      }
   ],
   &quot;channels&quot;: [
      {
         &quot;peer_id&quot;: &quot;0232a73b00b1e4eb6ee1787785640dca55a67bf5e6b338e42efff6a9b21da26c93&quot;,
         &quot;connected&quot;: true,
         &quot;state&quot;: &quot;CHANNELD_NORMAL&quot;,
         &quot;channel_id&quot;: &quot;a8664ad1bbc4debd16ea2a49b07167f35d3dd9cacac60c0ad6d60fbb76ce78e7&quot;,
         &quot;short_channel_id&quot;: &quot;103x1x1&quot;,
         &quot;our_amount_msat&quot;: 1000000000,
         &quot;amount_msat&quot;: 1000000000,
         &quot;funding_txid&quot;: &quot;c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee&quot;,
         &quot;funding_output&quot;: 1
      }
   ]
}
</code></pre>

CC BY-SA 4.0
2023-07-14T08:54:15.553Z
2023-07-14T09:30:51.273Z
2023-07-14T09:30:51.273Z
Lagrang3
<p>An open-channel transaction has too low fees and does not get confirmed. It has opted in to RBF, but there is no change output. So I think it is not possible to use <code>lightning-cli openchannel_bump</code>?</p>
<p>Isn't it possible to simply use <code>bitcoin-cli abandontransaction</code> to remove the transaction from mempool and then open a new channel using the same UTXO with higher fees? Is there a chance that something goes wrong this way that I do not see?</p>
<p>Update 1:</p>
<p>Tried now <code>bitcoin-cli abandontransaction</code>, but did not work. I think either because the lightning wallet is not on the bitcoin node or because it is a pruned node.</p>
<p>Next I searched for a method on core lightning to stop the  open-channel transaction to be pushed to the mempool. Did not find one. Should such functionality be implemented?</p>
<p>So I expected that this happens automatically when I close the channel. So I did a <code>bitcoin-cli close</code>. It worked, but channel did not get closed for another 48h. So I tried force close.</p>
<p>This is the point where I am stuck now. The transaction still gets pushed to mempool. Now I do not know what I can further try and I am a little afraid that the transaction gets confirmed and the channel is not usable because it is closed.</p>
<p>Update 2:</p>
<p>Found in the lightning FAQ the article <a href="https://lightning.readthedocs.io/FAQ.html#how-to-forget-about-a-channel-a-name-forget-channel-a" rel="nofollow noreferrer">How to forget about a channel?</a> which sounds like what I need. So I tried <code>lightning-cli dev-forget-channel $NODEID</code> and it worked to remove the channel from my node.</p>
<p>But now my lightning wallet does not see my UTXOs which where used to open this channel anymore. I still see the transaction in mempool Explorer to be not confirmed.</p>
<p>So I tried to start lightningd with <code>--rescan=depth</code> and used a depth which is higher than the transaction where I got the UTXOs. But also after rescanning lightning wallet can not see my funds.</p>
<p>Would be very happy for some help / ideas.</p>

<lightning-network><core-lightning><replace-by-fee><channels>
Open Channel Transaction without RBF is stuck
timmornYE
# Open Channel Transaction without RBF is stuck

(Asked by: username_0 on 2023-07-10)

An open-channel transaction has too low fees and does not get confirmed. It has opted in to RBF, but there is no change output. So I think it is not possible to use `lightning-cli openchannel_bump`?

Isn't it possible to simply use `bitcoin-cli abandontransaction` to remove the transaction from mempool and then open a new channel using the same UTXO with higher fees? Is there a chance that something goes wrong this way that I do not see?

Update 1:

Tried now `bitcoin-cli abandontransaction`, but did not work. I think either because the lightning wallet is not on the bitcoin node or because it is a pruned node.

Next I searched for a method on core lightning to stop the open-channel transaction to be pushed to the mempool. Did not find one. Should such functionality be implemented?

So I expected that this happens automatically when I close the channel. So I did a `bitcoin-cli close`. It worked, but channel did not get closed for another 48h. So I tried force close.

This is the point where I am stuck now. The transaction still gets pushed to mempool. Now I do not know what I can further try and I am a little afraid that the transaction gets confirmed and the channel is not usable because it is closed.

Update 2:

Found in the lightning FAQ the article [How to forget about a channel?](https://lightning.readthedocs.io/FAQ.html#how-to-forget-about-a-channel-a-name-forget-channel-a) which sounds like what I need. So I tried `lightning-cli dev-forget-channel $NODEID` and it worked to remove the channel from my node.

But now my lightning wallet does not see my UTXOs which where used to open this channel anymore. I still see the transaction in mempool Explorer to be not confirmed.

So I tried to start lightningd with `--rescan=depth` and used a depth which is higher than the transaction where I got the UTXOs. But also after rescanning lightning wallet can not see my funds.

Would be very happy for some help / ideas.

**Tags:** lightning-network, core-lightning, replace-by-fee, channels


---

## 1 answers

### Answer by username_1 on 2023-07-14. Score: 1

I cannot answer all of your questions, but I can give you some help.

From the bitcoin point of view, you can always spend a transaction output (TXO) if it is not spent already by some confirmed transaction.
That said, if you opened a channel but the funding transaction is not confirmed you can spend the TXO that funded the channel, but I don't know how lightningd would react to this.

You said you have closed the channel. If you funds are still stuck it means both the funding channel and close channel transactions are unconfirmed in the mempool.

I would try to spend the TXO in the close TX in a child-pays-for-parent fashion. However, when trying to reproduce that scenario in regtest I find troubles with the clightning user interface.

I did the following to simulate your situation:

1. I create a channel with peer

```
$ l1-cli fundchannel 0397d48baf82cf731fc8967c16e3d9575f10606bdf481738eb9cafeda29d0e3d67 1000000sat
{
   "tx": "02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff0240420f000000000022002075e9a102dbb348646e2f1804cc3cfec9edb6f5551a074f33a615f29cbd45eeaa4c5bd70500000000160014deb1f4e1123694ca3e418cefe496d3c26b0ddde202473044022068b402d53f16204324b28607eca046a4f7121d8f83c62e17de9c9131e307b5cf022077a3aa538469f9e0983cce98c3de4c5427731b398ed395d9614cf7b54d4f5cdd012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e73000000",
   "txid": "11b8967c62c584da9bbba5243d61bc95b4da210760bca04adb7c349319edba19",
   "channel_id": "9dfe0df4c502c31e92c266bfa28af18d6f6d11a0b0197b838797f8c990625168",
   "outnum": 0
}

```

2. I closed the channel

```
$ l1-cli -k close id=9dfe0df4c502c31e92c266bfa28af18d6f6d11a0b0197b838797f8c990625168 
# Sending closing fee offer 139sat, with range 139sat-183sat
# Received closing fee offer 139sat, with range 139sat-1000000sat
{
   "tx": "020000000119baed1993347cdb4aa0bc600721dab495bc613d24a5bb9bda84c5627c96b8110000000000ffffffff01b5410f00000000001600141b420a80810dda8fd3621e6ba4ce14ce85b6877e00000000",
   "txid": "e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699",
   "type": "mutual"
}

```

At this point both the funding (`11b896...`) and settlement (`e6a7d6cc...`) transactions are in the mempool and unconfirmed.
The situation is shown in the diagram below

```
tx:c312c...(confirmed) ---> tx:11b89... (funding tx unconfirmed) ---> tx:e6a7d6cc... (settlement, unconfirmed)

```

# Solution 1 (that doesn't work)

My idea is to spend the settlement output with a higher fee.
However, I have problems with `lightning-cli` to get this working.

If I try to spend the settlement output, which is controlled by my wallet:

```
$ l1-cli -k txprepare outputs="[{\"bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\":\"all\"}]" utxos="[\"e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699:0\"]" feerate=100
{
   "code": -32602,
   "message": "Unknown UTXO e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699:0"
}

```

So probably lightnind is saying: "that UTXO is not in the blockchain, I cannot spend it".

I tried a work-around, creating a PSBT with `bitcoin-cli`:

```
$ bt-cli createpsbt "[{\"txid\":\"e6a7d6cc0960f0f7481a3e9a18b9d9cc18ee695dd626a597883be4599c043699\",\"vout\":0}]" "[{\"bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\":0.00900000}]"
cHNidP8BAFICAAAAAZk2BJxZ5DuIl6Um1l1p7hjM2bkYmj4aSPfwYAnM1qfmAAAAAAD9////AaC7DQAAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA

```

and then signing it with `lightning-cli`:

```
$ l1-cli signpsbt cHNidP8BAFICAAAAAZk2BJxZ5DuIl6Um1l1p7hjM2bkYmj4aSPfwYAnM1qfmAAAAAAD9////AaC7DQAAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
{
   "code": -1,
   "message": "No wallet inputs to sign"
}

```

It seems that clightning doesn't like to sign transactions inputs that are not confirmed.

# Solution 2 (the ugly)

I would spend the TXO that funded the channel since the funding transaction is unconfirmed.

```
$ l1-cli -k txprepare outputs="[{\"bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\":\"all\"}]" utxos="[\"c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee:0\"]" feerate=100
{
   "code": -32602,
   "message": "UTXO c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee:0 already reserved"
}

```

So, `clightning` sees that even though that TXO is not confirmed it is spent by a channel funding.

Let me try forcing again with bitcoin core PSBT:

```
$ bt-cli createpsbt "[{\"txid\":\"c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee\",\"vout\":0}]" "[{\"bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g\":0.98900000}]"
cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA

```

and then get a signature from clightning wallet:

```
$  l1-cli signpsbt cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAAA
{
   "signed_psbt": "cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAEBHyae5gUAAAAAFgAUrxY3yj79dai67Z9mJ4hHAjQSIzMiAgL1CT+P1myQn8cu5VbnDLA4rpKwP9G1bXEM9Ts8wBmGjkcwRAIgMdOln+3Bzrm5lWqUrBbtEleqYgclYdwSadbs7T8V+18CIFTRsrlwhdZrvrG+UiCGf44+TJrF+Oqj4w+hLFmucBcfASIGAvUJP4/WbJCfxy7lVucMsDiukrA/0bVtcQz1OzzAGYaOCK8WN8oAAAAAACICAoqr3sVLia14vPyrtYQRxA+wniCHWDV34AMh8C5p18haCDe84BUHAAAAAA=="
}

```

OK, so this time we have a signature, now we can construct the transaction

```
$ bt-cli finalizepsbt "cHNidP8BAFICAAAAAe4CbLfET0guubHhH2+vEZVqwm9M234MGqnvlAJexBLDAAAAAAD9////ASAY5QUAAAAAFgAUN7zgFSQzLwniDg/1ZAAzxUu6Zp8AAAAAAAEBHyae5gUAAAAAFgAUrxY3yj79dai67Z9mJ4hHAjQSIzMiAgL1CT+P1myQn8cu5VbnDLA4rpKwP9G1bXEM9Ts8wBmGjkcwRAIgMdOln+3Bzrm5lWqUrBbtEleqYgclYdwSadbs7T8V+18CIFTRsrlwhdZrvrG+UiCGf44+TJrF+Oqj4w+hLFmucBcfASIGAvUJP4/WbJCfxy7lVucMsDiukrA/0bVtcQz1OzzAGYaOCK8WN8oAAAAAACICAoqr3sVLia14vPyrtYQRxA+wniCHWDV34AMh8C5p18haCDe84BUHAAAAAA=="
{
  "hex": "02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff012018e5050000000016001437bce01524332f09e20e0ff5640033c54bba669f02473044022031d3a59fedc1ceb9b9956a94ac16ed1257aa62072561dc1269d6eced3f15fb5f022054d1b2b97085d66bbeb1be5220867f8e3e4c9ac5f8eaa3e30fa12c59ae70171f012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e00000000",
  "complete": true
}

```

and broadcast it

```
$ bt-cli sendrawtransaction 02000000000101ee026cb7c44f482eb9b1e11f6faf11956ac26f4cdb7e0c1aa9ef94025ec412c30000000000fdffffff012018e5050000000016001437bce01524332f09e20e0ff5640033c54bba669f02473044022031d3a59fedc1ceb9b9956a94ac16ed1257aa62072561dc1269d6eced3f15fb5f022054d1b2b97085d66bbeb1be5220867f8e3e4c9ac5f8eaa3e30fa12c59ae70171f012102f5093f8fd66c909fc72ee556e70cb038ae92b03fd1b56d710cf53b3cc019868e00000000
41304c4e992a0718d29cf7c46adb0f361c319d31b92eeb8d7dbc811aebc2b39f

```

If the miners include the last transaction `41304...`, then the funding `11b896...` and settlement `e6a7...` will be invalid. But you still have your funds.

```
tx:c312c...(confirmed) -X-> tx:11b89... (funding tx unconfirmed) -X-> tx:e6a7d6cc... (settlement, unconfirmed)
|
+---> tx:41304... (confirmed)

```

## Side effects

clightning sees the new funds, but it is still waiting for the previous transactions to confirm:

```
$ l1-cli listfunds
{
   "outputs": [
      {
         "txid": "11b8967c62c584da9bbba5243d61bc95b4da210760bca04adb7c349319edba19",
         "output": 1,
         "amount_msat": 97999692000,
         "scriptpubkey": "0014deb1f4e1123694ca3e418cefe496d3c26b0ddde2",
         "address": "bcrt1qm6clfcgjx62v50jp3nh7f9kncf4smh0z2v5q3d",
         "status": "unconfirmed",
         "reserved": false
      },
      {
         "txid": "41304c4e992a0718d29cf7c46adb0f361c319d31b92eeb8d7dbc811aebc2b39f",
         "output": 0,
         "amount_msat": 98900000000,
         "scriptpubkey": "001437bce01524332f09e20e0ff5640033c54bba669f",
         "address": "bcrt1qx77wq9fyxvhsncswpl6kgqpnc49m5e5lzmls0g",
         "status": "confirmed",
         "blockheight": 116,
         "reserved": false
      }
   ],
   "channels": [
      {
         "peer_id": "0232a73b00b1e4eb6ee1787785640dca55a67bf5e6b338e42efff6a9b21da26c93",
         "connected": true,
         "state": "CHANNELD_NORMAL",
         "channel_id": "a8664ad1bbc4debd16ea2a49b07167f35d3dd9cacac60c0ad6d60fbb76ce78e7",
         "short_channel_id": "103x1x1",
         "our_amount_msat": 1000000000,
         "amount_msat": 1000000000,
         "funding_txid": "c312c45e0294efa91a0c7edb4c6fc26a9511af6f1fe1b1b92e484fc4b76c02ee",
         "funding_output": 1
      }
   ]
}

```


---

