<p>Generally your lightning node will be able to tell which peers are online (in clightning with <code>listpeers</code> command)</p>

<p>If the other node is offline you can force close the channel by publishing your channel state.. Since the other node has signed your commitment tx as part of the protocol there is no need for it to be online or to help closing the channel. </p>

CC BY-SA 4.0
2019-03-05T00:40:35.513Z
I wonder how to test this without requiring two machines and two separate installs? I am using c-lightning. I can use listpeers but have no idea how would it look if one of the peers listed went dead. listpeers would still list the peer even if peer is not up?
Tony
CC BY-SA 4.0
2019-03-05T02:36:32.907Z
Is there any channel where I can talk to the people, say connect to some testnet lightning peer and ask the person: hey can you exit your node for a few minutes so that I can see what I get when I do listpeers?
Tony
CC BY-SA 4.0
2019-03-05T07:22:19.557Z
With c Lightning it is very easy to run several lightning nodes on one machine. Just start lightningd with different data-dir and address arguments. Each instance needs a different data directory and a different port. You don't even have to do it on testnet but you can also do it in regtest (simnet) as described here https://github.com/shesek/spark-wallet/blob/master/doc/dev-regtest-env.md
Rene Pickhardt
CC BY-SA 4.0
2019-03-04T07:01:17.003Z
2019-03-04T07:01:17.003Z
Rene Pickhardt
<p>I would like to test this scenario on a testnet.</p>

<p>I funded a channel with one testnet node.</p>

<p>Assume that node suddenly vanishes and doesn't come back up for, say, another 4 weeks, or never.</p>

<p>What is supposed to happen? How am I supposed to detect and react to this?</p>

<lightning-network>
What to do when funded channel node disappears
Tony
# What to do when funded channel node disappears

(Asked by: username_0 on 2019-03-03)

I would like to test this scenario on a testnet.

I funded a channel with one testnet node.

Assume that node suddenly vanishes and doesn't come back up for, say, another 4 weeks, or never.

What is supposed to happen? How am I supposed to detect and react to this?

**Tags:** lightning-network


---

## 1 answers

### Answer by username_1 on 2019-03-04. Score: 1 | Accepted answer

Generally your lightning node will be able to tell which peers are online (in clightning with `listpeers` command)

If the other node is offline you can force close the channel by publishing your channel state.. Since the other node has signed your commitment tx as part of the protocol there is no need for it to be online or to help closing the channel.

> **Comments:**
> **username_0**: I wonder how to test this without requiring two machines and two separate installs? I am using c-lightning. I can use listpeers but have no idea how would it look if one of the peers listed went dead. listpeers would still list the peer even if peer is not up?  
> **username_0**: Is there any channel where I can talk to the people, say connect to some testnet lightning peer and ask the person: hey can you exit your node for a few minutes so that I can see what I get when I do listpeers?  
> **username_1**: With c Lightning it is very easy to run several lightning nodes on one machine. Just start lightningd with different data-dir and address arguments. Each instance needs a different data directory and a different port. You don't even have to do it on testnet but you can also do it in regtest (simnet) as described here https://github.com/shesek/spark-wallet/blob/master/doc/dev-regtest-env.md  

---

