Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] command to close all opened channels #641

Closed
johnnyhonda opened this issue Jan 20, 2018 · 1 comment
Closed

[Request] command to close all opened channels #641

johnnyhonda opened this issue Jan 20, 2018 · 1 comment
Labels
beginner Issues suitable for new developers channel management The management of the nodes channels feature request Requests for new features

Comments

@johnnyhonda
Copy link

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

@halseth halseth added beginner Issues suitable for new developers channel management The management of the nodes channels feature request Requests for new features labels Jan 23, 2018
@kasadawa
Copy link

kasadawa commented Feb 6, 2019

there is no reference documentation about this command, please provide one here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner Issues suitable for new developers channel management The management of the nodes channels feature request Requests for new features
Projects
None yet
Development

No branches or pull requests

3 participants