0

In a given lightning channel what are the risks of allowing the remote node to be offline for an extended period of time?

The obvious being the funds in the channel would be inaccessible, but if we have a long time preference and aren't really worried about that, are there any risks that they could cheat the channel setup while offline?

2 Answers 2

2

You only need be concerned about your own uptime. If your counterparty is offline for extended periods, they are at risk of being cheated by you, but it does not put you at risk.

However, since forwarding payments on the shared channel requires both parties to be online, their being offline incurs an opportunity cost onto you due to your balance in that channel lying fallow without generating fees. As @sr_gi notes below, a peer that is frequently offline may also hamper your ability to use the Lightning Network at all, if they are one of your main connections to the wider network.

2
  • 2
    I´ll add that, if they are your single point of entry to LN, you'd effectively be forced to open another channel if you want to continue using the system, which may become an issue in high onchain fee periods. Therefore, them being offline can be sort of a DoS attack on you.
    – sr_gi
    Commented May 24, 2023 at 3:05
  • Good point @sr_gi nodes with low centrality or just few channels would be affected by this.
    – Poseidon
    Commented May 24, 2023 at 7:23
2

I'm not sure what you mean by the "remote channel". If you don't control the channel and you grant full access to a third party to manage your Lightning node/channel then the worst they can do is spend all the Bitcoin in that channel and push the total capacity to the counterparty's balance in the channel. You can effectively lose all the Bitcoin you initially locked up in the channel.

Assuming you control the channel, if funds are moving back and forth in the channel the Lightning security model relies on observing the blockchain in case your counterparty tries to cheat you by posting a revoked state. If you don't do this or stay offline for a sustained period you may miss the cheat attempt and hence fail to respond within the required time window by broadcasting the justice transaction. The amount of Bitcoin you lose will be the difference between your current balance in the channel and the balance you had in the revoked state.

If you are a routing node and not just an edge node then being offline for a sustained period could also result in you not earning routing fees you could have earned in that time. Other Lightning nodes may choose to close channels with you as you have potentially cost them routing fees in the time that you've been offline. Rather than revealing the preimage to the hash of the HTLC in a timely fashion you may have locked up capital across the route, prevented Lightning nodes from routing other payments and ultimately require them to close channels. As a routing node you should really aim for 100 percent uptime. As an edge node you are just hurting yourself if you are offline for a sustained period as you can't receive payments and you are giving your counterparty the opportunity to cheat you.

3
  • my mistake I meant remote node not remote channel, I corrected it
    – Poseidon
    Commented May 23, 2023 at 8:55
  • 1
    @Poseidon: "Assuming we do not control the remote node in a given lightning channel" Assuming we don't control both nodes in a channel? Why would we open a channel with ourselves? Commented May 23, 2023 at 16:20
  • There might not be a good reason to do so, but in case there was I wanted to make it clear this was not the case.
    – Poseidon
    Commented May 23, 2023 at 20:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.