[Request] command to close all opened channels #641
Labels
beginner
Issues suitable for new developers
channel management
The management of the nodes channels
feature request
Requests for new features
Currently there is no way to close all channels that are opened without some hacking. It would be nice to have something like:
lncli closechannel -all
If you want to close all channels: @djseeds:
to close all channels...
lncli listchannels | jq '.[][]' | jq -r '.channel_point' | tr : ' ' | xargs -n2 lncli closechannel
to close only inactive channels...
lncli listchannels | jq '.[][]' | jq -c -r 'select(.active == false) | .channel_point' | tr : ' ' | xargs -n2 lncli closechannel --force
The text was updated successfully, but these errors were encountered: