mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-04 04:54:47 +01:00
6e636a835f
1. listpeers has a deprecated `"closer": null`, which we need to handle in the schema, while trying not to damage our documentation too much. 2. Don't print a condition if there are no fields to print. 3. Allow a special "untyped" marker for multifundchannel which returns arbitrary JSON in a field. 4. Allow a single field return (for 'stop'). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
62 lines
1.5 KiB
Markdown
62 lines
1.5 KiB
Markdown
lightning-disconnect -- Command for disconnecting from another lightning node
|
||
=============================================================================
|
||
|
||
SYNOPSIS
|
||
--------
|
||
|
||
**disconnect** *id* \[*force*\]
|
||
|
||
DESCRIPTION
|
||
-----------
|
||
|
||
The disconnect RPC command closes an existing connection to a peer,
|
||
identified by *id*, in the Lightning Network, as long as it doesn’t have
|
||
an active channel. If *force* is set then it will disconnect even with
|
||
an active channel.
|
||
|
||
The *id* can be discovered in the output of the listpeers command, which
|
||
returns a set of peers:
|
||
|
||
{
|
||
"peers": [
|
||
{
|
||
"id": "0563aea81...",
|
||
"connected": true,
|
||
...
|
||
}
|
||
]
|
||
}
|
||
|
||
Passing the *id* attribute of a peer to *disconnect* will terminate the
|
||
connection.
|
||
|
||
RETURN VALUE
|
||
------------
|
||
|
||
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
||
On success, an empty object is returned.
|
||
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
||
|
||
On error the returned object will contain `code` and `message` properties,
|
||
with `code` being one of the following:
|
||
|
||
- -32602: If the given parameters are wrong.
|
||
- -1: Catchall nonspecific error.
|
||
|
||
AUTHOR
|
||
------
|
||
|
||
Michael Hawkins <<michael.hawkins@protonmail.com>>.
|
||
|
||
SEE ALSO
|
||
--------
|
||
|
||
lightning-connect(1), lightning-listpeers(1)
|
||
|
||
RESOURCES
|
||
---------
|
||
|
||
Main web site: <https://github.com/ElementsProject/lightning>
|
||
|
||
[comment]: # ( SHA256STAMP:f807f98a54c194fab710f8a3393e96685fdbd0efa5e178cca54507a70a7a5c20)
|