<p>There are 3 ways to close a channel.</p>

<ul>
<li>The good way: mutual close</li>
<li>The bad way: force close</li>
<li>The ugly way: revoked close with penalty transaction</li>
</ul>

<p>In the good case the closing tx should have 2 outputs as you expected. In rate cases even just 1 output. </p>

<p>But in the other two cases a version of the commitment transaction is published. The commitment transactions has additional outputs for pending htlcs that are not settled or timed out yet. So if the channel was routing funds and a force close or protocol breach is happening we can see more than two outputs. </p>

CC BY-SA 4.0
2020-06-17T16:28:08.780Z
Can we have output addresses in the bad/ugly way that are not controlled by the two nodes, but by a third party?
M_R
CC BY-SA 4.0
2020-06-18T20:28:54.523Z
theoretically yes. have a look at `upfront_shutdown_script` defined in BOLT 02 in the `open_channel` message
Rene Pickhardt
CC BY-SA 4.0
2020-04-07T14:39:48.720Z
2020-04-07T14:39:48.720Z
Rene Pickhardt
<p>I collected some data regarding closing transactions of channels in LN and I see that a small percentage of them have more than two outputs. How is this possible?</p>

<p>An example of such closing transaction type:
1235c0196785ea2e538fb5f3e45caeb17fc457c089a9f4a4bb01f1221539159a</p>

<lightning-network><ln-closing-channels>
How can a closing transaction in LN have more than 2 outputs?
M_R
# How can a closing transaction in LN have more than 2 outputs?

(Asked by: username_0 on 2020-04-07)

I collected some data regarding closing transactions of channels in LN and I see that a small percentage of them have more than two outputs. How is this possible?

An example of such closing transaction type:
1235c0196785ea2e538fb5f3e45caeb17fc457c089a9f4a4bb01f1221539159a

**Tags:** lightning-network, ln-closing-channels


---

## 1 answers

### Answer by username_1 on 2020-04-07. Score: 2 | Accepted answer

There are 3 ways to close a channel.

* The good way: mutual close
* The bad way: force close
* The ugly way: revoked close with penalty transaction

In the good case the closing tx should have 2 outputs as you expected. In rate cases even just 1 output.

But in the other two cases a version of the commitment transaction is published. The commitment transactions has additional outputs for pending htlcs that are not settled or timed out yet. So if the channel was routing funds and a force close or protocol breach is happening we can see more than two outputs.

> **Comments:**
> **username_0**: Can we have output addresses in the bad/ugly way that are not controlled by the two nodes, but by a third party?  
> **username_1**: theoretically yes. have a look at `upfront_shutdown_script` defined in BOLT 02 in the `open_channel` message  

---

