1

I would like to close channels for which there is enough evidence that the remote node disappeared and won't come back. So my idea was to check for how long a channel has been inactive, and if it is > two months to close that channel.

How could I find out for how long a channel has been inactive (in LND)? Finding out which channels are inactive is easy by queryinglncli listchannels --inactive_only, but the result does not show any indicator about how long that channel has been inactive.

2 Answers 2

3

You can look for "last_update" field in getchaninfo output.

Below I also submitted https://github.com/edouardparis/lntop console screenshot which does the same thing.

enter image description here

0

the command you are looking for is

admin@myNode:~ $ lncli getchaninfo --chan_id CHANNELIDVALUE
1
  • pretty much the same answer that had already been accepted years ago. Commented Apr 20, 2021 at 7:41

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.