arshbot / lnt

Lightning Network Tools -- better lncli for node admins
MIT License
5 stars 0 forks source link

kill zombie channels #13

Open arshbot opened 4 years ago

arshbot commented 4 years ago

This one is interesting. So there's a concept of zombie channels in lighting, basically channels who's node has permanently gone offline.

Like dead leaves on a tree, they have to be trimmed.

Initially I thought a command like lnt kill channel --zombie might be appropriate, but then you'd have to have this whole interactive process else you'd be trusting lnt to kill all the right channels ( big no no ).

Instead, I think a flow like lnt view channel --zombie | lnt kill channel might be more appropriate. If an operator would like to view the channels to be killed beforehand, they can do lnt view channel --zombie > killlist.txt to view and then feed that list into lnt kill channel