<p>The balance sheet is persisted on both Alice's and Bob's Lightning nodes. If Alice and Bob lose all the data stored on their Lightning nodes and have no backups then the funds in the channel will be locked in a 2-of-2 multisignature address on the blockchain but all pre-signed transactions to close the channel will have been lost. </p>

<p>Whether the funds can be recovered or not will be dependent on whether Alice and Bob still have the private keys to sign a transaction from that 2-of-2 multisignature address. If they both do then they can negotiate the proportion of funds to be returned to both parties and both sign that transaction. If they are unable to come to an agreement the funds will be locked forever. If either one of them have lost their private key then the funds will also be locked forever. </p>

CC BY-SA 4.0
2019-08-17T13:42:54.213Z
2019-08-17T13:42:54.213Z
Michael Folkson
<p>We like to say that Bitcoin is decentralized, and it is, but all the data can be viewed as having a centralized "source of truth": the blockchain.  All transactions that have ever occurred are a part of this source of truth.  The management and upkeep of this source of truth, however, <em>is</em> decentralized.  Nobody is in charge of it, yet everybody agrees on a single set of data.</p>

<p>The lightning network, however, is even more decentralized.  It doesn't just manage and update itself without central authority, but there is no agreed upon "truth" of the network.  The activity that occurs between two participants in a channel is <em>only</em> the business of the participants, and nobody else ever needs to see it.  Therefore it is not shared, and unless the participants want to, it is not stored.  Once a channel closes, the participants have completely settled all transactions between each other with a single transaction to the main Bitcoin blockchain.  They may very well persist the activity data for their own purposes, but it is in no way required for them to continue to participate.</p>

CC BY-SA 3.0
2018-03-28T19:04:13.667Z
I understand that it is not shared with the public, but what happens if none of the channel participants are storing the transaction history, how would the final balance be committed to the chain when the channel closes?
Dashi
CC BY-SA 3.0
2018-03-28T19:09:11.113Z
The split of which party gets how much of the opening transaction at close is precisely the information that is being updated throughout a channel's lifespan.  It is updated by exchanging updated, partially signed transactions as part of the smart contract.  This exchange is pretty much all the LN is for.
Jestin
CC BY-SA 3.0
2018-03-28T20:31:36.270Z
@Dashi As a participant in Lightning, you yourself are responsible for broadcasting the final state to the network and the chain whenever your peers misbehave (including when they would disappear).
Pieter Wuille
CC BY-SA 3.0
2018-03-28T18:59:32.467Z
2018-03-28T18:59:32.467Z
Jestin
<p>In relation to this <a href="https://bitcoin.stackexchange.com/questions/68918/lightning-network-understanding">question</a>:</p>

<p>Alice &amp; Bob where they transfer 1 BTC each other.</p>

<ol>
<li><p>Both Alice &amp; Bob transfer 1 BTC into a shared multisig address. </p></li>
<li><p>A ‘balance sheet’ is created where 1 BTC is paid by Alice -> Bob and 1 BTC is paid by Bob -> Alice. </p></li>
<li><p>In the above transaction, Alice signs the transaction and gives to Bob and vice-versa.  </p></li>
<li><p>Either Alice or Bob can sign their counterparts payout transaction and broadcast it to the blockchain. </p></li>
<li><p>Alice will update the ‘Balance sheet’ as 0.5 BTC to Alice and 1.5 to Bob and send the payout transaction to Bob to sign.</p></li>
<li><p>To ensure neither Alice  or Bob revert to the old transaction, each will create an ‘anti-cheat’ transaction.  </p></li>
<li><p>If Alice and Bob wants to close the channel, they can consensually close the channel and broadcast the transaction to the blockchain.</p></li>
</ol>

<p>Where is this <strong>balance sheet</strong> persisted? What happens if BOTH Alice AND Bob lose this information?</p>

<lightning-network>
Where is the lightning history persisted?
Dashi
# Where is the lightning history persisted?

(Asked by: username_0 on 2018-03-28)

In relation to this [question](https://bitcoin.stackexchange.com/questions/68918/lightning-network-understanding):

Alice & Bob where they transfer 1 BTC each other.

1. Both Alice & Bob transfer 1 BTC into a shared multisig address.
2. A ‘balance sheet’ is created where 1 BTC is paid by Alice -> Bob and 1 BTC is paid by Bob -> Alice.
3. In the above transaction, Alice signs the transaction and gives to Bob and vice-versa.
4. Either Alice or Bob can sign their counterparts payout transaction and broadcast it to the blockchain.
5. Alice will update the ‘Balance sheet’ as 0.5 BTC to Alice and 1.5 to Bob and send the payout transaction to Bob to sign.
6. To ensure neither Alice or Bob revert to the old transaction, each will create an ‘anti-cheat’ transaction.
7. If Alice and Bob wants to close the channel, they can consensually close the channel and broadcast the transaction to the blockchain.

Where is this **balance sheet** persisted? What happens if BOTH Alice AND Bob lose this information?

**Tags:** lightning-network


---

## 2 answers

### Answer by username_2 on 2018-03-28. Score: 3 | Accepted answer

We like to say that Bitcoin is decentralized, and it is, but all the data can be viewed as having a centralized "source of truth": the blockchain. All transactions that have ever occurred are a part of this source of truth. The management and upkeep of this source of truth, however, *is* decentralized. Nobody is in charge of it, yet everybody agrees on a single set of data.

The lightning network, however, is even more decentralized. It doesn't just manage and update itself without central authority, but there is no agreed upon "truth" of the network. The activity that occurs between two participants in a channel is *only* the business of the participants, and nobody else ever needs to see it. Therefore it is not shared, and unless the participants want to, it is not stored. Once a channel closes, the participants have completely settled all transactions between each other with a single transaction to the main Bitcoin blockchain. They may very well persist the activity data for their own purposes, but it is in no way required for them to continue to participate.

> **Comments:**
> **username_0**: I understand that it is not shared with the public, but what happens if none of the channel participants are storing the transaction history, how would the final balance be committed to the chain when the channel closes?  
> **username_2**: The split of which party gets how much of the opening transaction at close is precisely the information that is being updated throughout a channel's lifespan.  It is updated by exchanging updated, partially signed transactions as part of the smart contract.  This exchange is pretty much all the LN is for.  
> **username_3**: @username_0 As a participant in Lightning, you yourself are responsible for broadcasting the final state to the network and the chain whenever your peers misbehave (including when they would disappear).  

---

### Answer by username_1 on 2019-08-17. Score: 2

The balance sheet is persisted on both Alice's and Bob's Lightning nodes. If Alice and Bob lose all the data stored on their Lightning nodes and have no backups then the funds in the channel will be locked in a 2-of-2 multisignature address on the blockchain but all pre-signed transactions to close the channel will have been lost.

Whether the funds can be recovered or not will be dependent on whether Alice and Bob still have the private keys to sign a transaction from that 2-of-2 multisignature address. If they both do then they can negotiate the proportion of funds to be returned to both parties and both sign that transaction. If they are unable to come to an agreement the funds will be locked forever. If either one of them have lost their private key then the funds will also be locked forever.


---

