2019-08-10 02:12:44 +02:00
|
|
|
|
.TH "LIGHTNINGD-CONFIG" "5" "" "" "lightningd-config"
|
|
|
|
|
.SH NAME
|
|
|
|
|
lightningd-config - Lightning daemon configuration file
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
|
|
|
|
\fB~/\.lightning/config\fR
|
|
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
2019-11-23 02:45:53 +01:00
|
|
|
|
When \fBlightningd\fR(8) starts up it usually reads a general configuration
|
|
|
|
|
file (default: \fB$HOME/\.lightning/config\fR) then a network-specific
|
|
|
|
|
configuration file (default: \fB$HOME/\.lightning/testnet/config\fR)\. This can
|
|
|
|
|
be changed: see \fI--conf\fR and \fI--lightning-dir\fR\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2019-11-23 02:45:53 +01:00
|
|
|
|
General configuration files are processed first, then network-specific
|
|
|
|
|
ones, then command line options: later options override earlier ones
|
|
|
|
|
except \fIaddr\fR options and \fIlog-level\fR with subsystems, which
|
|
|
|
|
accumulate\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2019-11-23 02:44:51 +01:00
|
|
|
|
\fIinclude \fR followed by a filename includes another configuration file at that
|
|
|
|
|
point, relative to the current configuration file\.
|
|
|
|
|
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
All these options are mirrored as commandline arguments to
|
|
|
|
|
\fBlightningd\fR(8), so \fI--foo\fR becomes simply \fIfoo\fR in the configuration
|
|
|
|
|
file, and \fI--foo=bar\fR becomes \fIfoo=bar\fR in the configuration file\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Blank lines and lines beginning with \fI#\fR are ignored\.
|
|
|
|
|
|
|
|
|
|
.SH DEBUGGING
|
|
|
|
|
|
|
|
|
|
\fI--help\fR will show you the defaults for many options; they vary with
|
|
|
|
|
network settings so you can specify \fI--network\fR before \fI--help\fR to see
|
|
|
|
|
the defaults for that network\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The \fBlightning-listconfigs\fR(7) command will output a valid configuration
|
|
|
|
|
file using the current settings\.
|
|
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
|
.SH General options
|
|
|
|
|
|
|
|
|
|
\fBallow-deprecated-apis\fR=\fIBOOL\fR
|
|
|
|
|
Enable deprecated options, JSONRPC commands, fields, etc\. It defaults to
|
|
|
|
|
\fItrue\fR, but you should set it to \fIfalse\fR when testing to ensure that an
|
|
|
|
|
upgrade won’t break your configuration\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBhelp\fR
|
|
|
|
|
Print help and exit\. Not very useful inside a configuration file, but
|
|
|
|
|
fun to put in other’s config files while their computer is unattended\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBversion\fR
|
|
|
|
|
Print version and exit\. Also useless inside a configuration file, but
|
|
|
|
|
putting this in someone’s config file may convince them to read this man
|
|
|
|
|
page\.
|
|
|
|
|
|
|
|
|
|
|
2018-05-17 06:46:22 +02:00
|
|
|
|
Bitcoin control options:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBnetwork\fR=\fINETWORK\fR
|
2020-10-15 12:54:59 +02:00
|
|
|
|
Select the network parameters (\fIbitcoin\fR, \fItestnet\fR, \fIsignet\fR, or \fIregtest\fR)\.
|
2019-11-23 02:46:40 +01:00
|
|
|
|
This is not valid within the per-network configuration file\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBtestnet\fR
|
|
|
|
|
Alias for \fInetwork=testnet\fR\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBsignet\fR
|
|
|
|
|
Alias for \fInetwork=signet\fR\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBmainnet\fR
|
|
|
|
|
Alias for \fInetwork=bitcoin\fR\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-cli\fR=\fIPATH\fR
|
|
|
|
|
The name of \fIbitcoin-cli\fR executable to run\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-datadir\fR=\fIDIR\fR
|
|
|
|
|
\fI-datadir\fR argument to supply to \fBbitcoin-cli\fR(1)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-rpcuser\fR=\fIUSER\fR
|
|
|
|
|
The RPC username for talking to \fBbitcoind\fR(1)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-rpcpassword\fR=\fIPASSWORD\fR
|
|
|
|
|
The RPC password for talking to \fBbitcoind\fR(1)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-rpcconnect\fR=\fIHOST\fR
|
|
|
|
|
The \fBbitcoind\fR(1) RPC host to connect to\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-rpcport\fR=\fIPORT\fR
|
|
|
|
|
The \fBbitcoind\fR(1) RPC port to connect to\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbitcoin-retry-timeout\fR=\fISECONDS\fR
|
|
|
|
|
Number of seconds to keep trying a \fBbitcoin-cli\fR(1) command\. If the
|
|
|
|
|
command keeps failing after this time, exit with a fatal error\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBrescan\fR=\fIBLOCKS\fR
|
|
|
|
|
Number of blocks to rescan from the current head, or absolute
|
|
|
|
|
blockheight if negative\. This is only needed if something goes badly
|
|
|
|
|
wrong\.
|
|
|
|
|
|
|
|
|
|
.SH Lightning daemon options
|
|
|
|
|
|
|
|
|
|
\fBlightning-dir\fR=\fIDIR\fR
|
|
|
|
|
Sets the working directory\. All files (except \fI--conf\fR and
|
2019-11-23 02:46:40 +01:00
|
|
|
|
\fI--lightning-dir\fR on the command line) are relative to this\. This
|
|
|
|
|
is only valid on the command-line, or in a configuration file specified
|
|
|
|
|
by \fI--conf\fR\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2020-02-04 01:14:13 +01:00
|
|
|
|
\fBsubdaemon\fR=\fISUBDAEMON\fR:\fIPATH\fR
|
|
|
|
|
Specifies an alternate subdaemon binary\.
|
|
|
|
|
Current subdaemons are \fIchanneld\fR, \fIclosingd\fR,
|
|
|
|
|
\fIconnectd\fR, \fIgossipd\fR, \fIhsmd\fR, \fIonchaind\fR, and \fIopeningd\fR\.
|
|
|
|
|
If the supplied path is relative the subdaemon binary is found in the
|
|
|
|
|
working directory\. This option may be specified multiple times\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
So, \fBsubdaemon=hsmd:remote_signer\fR would use a
|
|
|
|
|
hypothetical remote signing proxy instead of the standard \fIlightning_hsmd\fR
|
|
|
|
|
binary\.
|
|
|
|
|
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBpid-file\fR=\fIPATH\fR
|
|
|
|
|
Specify pid file to write to\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:17 +01:00
|
|
|
|
\fBlog-level\fR=\fILEVEL\fR[:\fISUBSYSTEM\fR]
|
2019-08-10 02:12:44 +02:00
|
|
|
|
What log level to print out: options are io, debug, info, unusual,
|
2019-11-18 01:27:17 +01:00
|
|
|
|
broken\. If \fISUBSYSTEM\fR is supplied, this sets the logging level
|
|
|
|
|
for any subsystem containing that string\. Subsystems include:
|
|
|
|
|
|
|
|
|
|
.RS
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIlightningd\fR: The main lightning daemon
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIdatabase\fR: The database subsystem
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIwallet\fR: The wallet subsystem
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIgossipd\fR: The gossip daemon
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIplugin-manager\fR: The plugin subsystem
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIplugin-P\fR: Each plugin, P = plugin path without directory
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIhsmd\fR: The secret-holding daemon
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIconnectd\fR: The network connection daemon
|
2019-11-18 01:27:18 +01:00
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIjsonrpc#FD\fR: Each JSONRPC connection, FD = file descriptor number
|
2019-11-18 01:27:17 +01:00
|
|
|
|
|
|
|
|
|
.RE
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
The following subsystems exist for each channel, where N is an incrementing
|
2019-11-18 01:27:17 +01:00
|
|
|
|
internal integer id assigned for the lifetime of the channel:
|
|
|
|
|
|
|
|
|
|
.RS
|
|
|
|
|
.IP \[bu]
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fIopeningd-chan#N\fR: Each opening / idling daemon
|
2019-11-18 01:27:17 +01:00
|
|
|
|
.IP \[bu]
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fIchanneld-chan#N\fR: Each channel management daemon
|
2019-11-18 01:27:17 +01:00
|
|
|
|
.IP \[bu]
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fIclosingd-chan#N\fR: Each closing negotiation daemon
|
2019-11-18 01:27:17 +01:00
|
|
|
|
.IP \[bu]
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fIonchaind-chan#N\fR: Each onchain close handling daemon
|
2019-11-18 01:27:17 +01:00
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
So, \fBlog-level=debug:plugin\fR would set debug level logging on all
|
2019-11-18 01:27:18 +01:00
|
|
|
|
plugins and the plugin manager\. \fBlog-level=io:chan#55\fR would set
|
2019-11-18 01:27:18 +01:00
|
|
|
|
IO logging on channel number 55 (or 550, for that matter)\.
|
|
|
|
|
|
2019-11-18 01:27:17 +01:00
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBlog-prefix\fR=\fIPREFIX\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Prefix for log lines: this can be customized if you want to merge logs
|
|
|
|
|
with multiple daemons\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBlog-file\fR=\fIPATH\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Log to this file instead of stdout\. Sending \fBlightningd\fR(8) SIGHUP will
|
|
|
|
|
cause it to reopen this file (useful for log rotation)\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBrpc-file\fR=\fIPATH\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Set JSON-RPC socket (or /dev/tty), such as for \fBlightning-cli\fR(1)\.
|
|
|
|
|
|
|
|
|
|
|
2020-01-24 03:20:45 +01:00
|
|
|
|
\fBrpc-file-mode\fR=\fIMODE\fR
|
|
|
|
|
Set JSON-RPC socket file mode, as a 4-digit octal number\.
|
|
|
|
|
Default is 0600, meaning only the user that launched lightningd
|
|
|
|
|
can command it\.
|
|
|
|
|
Set to 0660 to allow users with the same group to access the RPC
|
|
|
|
|
as well\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBdaemon\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Run in the background, suppress stdout and stderr\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBconf\fR=\fIPATH\fR
|
2019-11-23 02:45:53 +01:00
|
|
|
|
Sets configuration file, and disable reading the normal general and network
|
|
|
|
|
ones\. If this is a relative path, it is relative to the starting directory, not
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBlightning-dir\fR (unlike other paths)\. \fIPATH\fR must exist and be
|
|
|
|
|
readable (we allow missing files in the default case)\. Using this inside
|
2019-11-23 02:46:40 +01:00
|
|
|
|
a configuration file is invalid\.
|
2019-09-02 17:48:37 +02:00
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBwallet\fR=\fIDSN\fR
|
2019-09-02 17:48:37 +02:00
|
|
|
|
Identify the location of the wallet\. This is a fully qualified data source
|
|
|
|
|
name, including a scheme such as \fBsqlite3\fR or \fBpostgres\fR followed by the
|
|
|
|
|
connection parameters\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2019-10-03 16:32:38 +02:00
|
|
|
|
|
2020-04-06 16:01:11 +02:00
|
|
|
|
The default wallet corresponds to the following DSN:
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
.RS
|
|
|
|
|
--wallet=sqlite3://$HOME/.lightning/bitcoin/lightningd.sqlite3
|
|
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.fi
|
|
|
|
|
|
|
|
|
|
The following is an example of a postgresql wallet DSN:
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
.RS
|
|
|
|
|
--wallet=postgres://user:pass@localhost:5432/db_name
|
|
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.fi
|
|
|
|
|
|
2020-09-23 14:00:27 +02:00
|
|
|
|
This will connect to a DB server running on \fBlocalhost\fR port \fB5432\fR,
|
2020-04-06 16:01:11 +02:00
|
|
|
|
authenticate with username \fBuser\fR and password \fBpass\fR, and then use the
|
|
|
|
|
database \fBdb_name\fR\. The database must exist, but the schema will be managed
|
|
|
|
|
automatically by \fBlightningd\fR\.
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 01:27:18 +01:00
|
|
|
|
\fBencrypted-hsm\fR
|
2019-10-03 16:32:38 +02:00
|
|
|
|
If set, you will be prompted to enter a password used to encrypt the \fBhsm_secret\fR\.
|
|
|
|
|
Note that once you encrypt the \fBhsm_secret\fR this option will be mandatory for
|
|
|
|
|
\fBlightningd\fR to start\.
|
2020-06-29 08:28:46 +02:00
|
|
|
|
If there is no \fBhsm_secret\fR yet, \fBlightningd\fR will create a new encrypted secret\.
|
|
|
|
|
If you have an unencrypted \fBhsm_secret\fR you want to encrypt on-disk, or vice versa,
|
|
|
|
|
see \fBlightning-hsmtool\fR(8)\.
|
2019-10-03 16:32:38 +02:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH Lightning node customization options
|
|
|
|
|
|
2019-12-11 10:24:49 +01:00
|
|
|
|
\fBalias\fR=\fINAME\fR
|
2019-12-11 11:32:55 +01:00
|
|
|
|
Up to 32 bytes of UTF-8 characters to tag your node\. Completely silly, since
|
2019-08-10 02:12:44 +02:00
|
|
|
|
anyone can call their node anything they want\. The default is an
|
|
|
|
|
NSA-style codename derived from your public key, but "Peter Todd" and
|
|
|
|
|
"VAULTERO" are good options, too\.
|
|
|
|
|
|
|
|
|
|
|
2019-12-11 10:24:49 +01:00
|
|
|
|
\fBrgb\fR=\fIRRGGBB\fR
|
|
|
|
|
Your favorite color as a hex code\.
|
|
|
|
|
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBfee-base\fR=\fIMILLISATOSHI\fR
|
|
|
|
|
Default: 1000\. The base fee to charge for every payment which passes
|
|
|
|
|
through\. Note that millisatoshis are a very, very small unit! Changing
|
|
|
|
|
this value will only affect new channels and not existing ones\. If you
|
|
|
|
|
want to change fees for existing channels, use the RPC call
|
|
|
|
|
\fBlightning-setchannelfee\fR(7)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBfee-per-satoshi\fR=\fIMILLIONTHS\fR
|
|
|
|
|
Default: 10 (0\.001%)\. This is the proportional fee to charge for every
|
|
|
|
|
payment which passes through\. As percentages are too coarse, it’s in
|
|
|
|
|
millionths, so 10000 is 1%, 1000 is 0\.1%\. Changing this value will only
|
|
|
|
|
affect new channels and not existing ones\. If you want to change fees
|
|
|
|
|
for existing channels, use the RPC call \fBlightning-setchannelfee\fR(7)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBmin-capacity-sat\fR=\fISATOSHI\fR
|
|
|
|
|
Default: 10000\. This value defines the minimal effective channel
|
2020-08-24 13:26:47 +02:00
|
|
|
|
capacity in satoshi to accept for channel opening requests\. This will
|
|
|
|
|
reject any opening of a channel which can't pass an HTLC of least this
|
|
|
|
|
value\. Usually this prevents a peer opening a tiny channel, but it
|
|
|
|
|
can also prevent a channel you open with a reasonable amount and the peer
|
|
|
|
|
requesting such a large reserve that the capacity of the channel
|
|
|
|
|
falls below this\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBignore-fee-limits\fR=\fIBOOL\fR
|
|
|
|
|
Allow nodes which establish channels to us to set any fee they want\.
|
|
|
|
|
This may result in a channel which cannot be closed, should fees
|
|
|
|
|
increase, but make channels far more reliable since we never close it
|
|
|
|
|
due to unreasonable fees\.
|
|
|
|
|
|
|
|
|
|
|
2019-12-11 12:37:28 +01:00
|
|
|
|
\fBcommit-time\fR=\fIMILLISECONDS\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
How long to wait before sending commitment messages to the peer: in
|
|
|
|
|
theory increasing this would reduce load, but your node would have to be
|
|
|
|
|
extremely busy node for you to even notice\.
|
|
|
|
|
|
|
|
|
|
.SH Lightning channel and HTLC options
|
|
|
|
|
|
2020-04-03 02:03:58 +02:00
|
|
|
|
\fBlarge-channels\fR
|
|
|
|
|
Removes capacity limits for channel creation\. Version 1\.0 of the specification
|
2020-04-06 16:01:11 +02:00
|
|
|
|
limited channel sizes to 16777215 satoshi\. With this option (which your
|
2020-04-03 02:03:58 +02:00
|
|
|
|
node will advertize to peers), your node will accept larger incoming channels
|
|
|
|
|
and if the peer supports it, will open larger channels\. Note: this option
|
|
|
|
|
is spelled \fBlarge-channels\fR but it's pronounced \fBwumbo\fR\.
|
|
|
|
|
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBwatchtime-blocks\fR=\fIBLOCKS\fR
|
|
|
|
|
How long we need to spot an outdated close attempt: on opening a channel
|
|
|
|
|
we tell our peer that this is how long they’ll have to wait if they
|
|
|
|
|
perform a unilateral close\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBmax-locktime-blocks\fR=\fIBLOCKS\fR
|
|
|
|
|
The longest our funds can be delayed (ie\. the longest
|
|
|
|
|
\fBwatchtime-blocks\fR our peer can ask for, and also the longest HTLC
|
|
|
|
|
timeout we will accept)\. If our peer asks for longer, we’ll refuse to
|
|
|
|
|
create a channel, and if an HTLC asks for longer, we’ll refuse it\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBfunding-confirms\fR=\fIBLOCKS\fR
|
|
|
|
|
Confirmations required for the funding transaction when the other side
|
|
|
|
|
opens a channel before the channel is usable\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBcommit-fee\fR=\fIPERCENT\fR
|
2020-05-17 16:53:37 +02:00
|
|
|
|
The percentage of \fIestimatesmartfee 2/CONSERVATIVE\fR to use for the commitment
|
|
|
|
|
transactions: default is 100\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBmax-concurrent-htlcs\fR=\fIINTEGER\fR
|
|
|
|
|
Number of HTLCs one channel can handle concurrently in each direction\.
|
|
|
|
|
Should be between 1 and 483 (default 30)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBcltv-delta\fR=\fIBLOCKS\fR
|
|
|
|
|
The number of blocks between incoming payments and outgoing payments:
|
|
|
|
|
this needs to be enough to make sure that if we have to, we can close
|
|
|
|
|
the outgoing payment before the incoming, or redeem the incoming once
|
|
|
|
|
the outgoing is redeemed\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBcltv-final\fR=\fIBLOCKS\fR
|
|
|
|
|
The number of blocks to allow for payments we receive: if we have to, we
|
|
|
|
|
might need to redeem this on-chain, so this is the number of blocks we
|
|
|
|
|
have to do that\.
|
|
|
|
|
|
|
|
|
|
|
2018-05-17 06:46:22 +02:00
|
|
|
|
Invoice control options:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBautocleaninvoice-cycle\fR=\fISECONDS\fR
|
|
|
|
|
Perform cleanup of expired invoices every \fISECONDS\fR seconds, or disable
|
|
|
|
|
if 0\. Usually unpaid expired invoices are uninteresting, and just take
|
|
|
|
|
up space in the database\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBautocleaninvoice-expired-by\fR=\fISECONDS\fR
|
|
|
|
|
Control how long invoices must have been expired before they are cleaned
|
|
|
|
|
(if \fIautocleaninvoice-cycle\fR is non-zero)\.
|
|
|
|
|
|
2020-07-10 14:48:00 +02:00
|
|
|
|
|
|
|
|
|
Payment control options:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBdisable-mpp\fR
|
|
|
|
|
Disable the multi-part payment sending support in the \fBpay\fR plugin\. By default
|
|
|
|
|
the MPP support is enabled, but it can be desirable to disable in situations
|
|
|
|
|
in which each payment should result in a single HTLC being forwarded in the
|
|
|
|
|
network\.
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH Networking options
|
|
|
|
|
|
|
|
|
|
Note that for simple setups, the implicit \fIautolisten\fR option does the
|
|
|
|
|
right thing: it will try to bind to port 9735 on IPv4 and IPv6, and will
|
|
|
|
|
announce it to peers if it seems like a public address\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can instead use \fIaddr\fR to override this (eg\. to change the port), or
|
|
|
|
|
precisely control where to bind and what to announce with the
|
|
|
|
|
\fIbind-addr\fR and \fIannounce-addr\fR options\. These will \fBdisable\fR the
|
|
|
|
|
\fIautolisten\fR logic, so you must specifiy exactly what you want!
|
|
|
|
|
|
|
|
|
|
|
2019-12-11 10:24:49 +01:00
|
|
|
|
\fBaddr\fR=\fI[IPADDRESS[:PORT]]|autotor:TORIPADDRESS[:SERVICEPORT][/torport=TORPORT]|statictor:TORIPADDRESS[:SERVICEPORT][/torport=TORPORT][/torblob=[blob]]\fR
|
|
|
|
|
|
2019-11-15 09:47:21 +01:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Set an IP address (v4 or v6) or automatic Tor address to listen on and
|
|
|
|
|
(maybe) announce as our node address\.
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
An empty 'IPADDRESS' is a special value meaning bind to IPv4 and/or
|
2020-03-30 11:22:12 +02:00
|
|
|
|
IPv6 on all interfaces, '0\.0\.0\.0' means bind to all IPv4
|
|
|
|
|
interfaces, '::' means 'bind to all IPv6 interfaces'\. If 'PORT' is
|
|
|
|
|
not specified, 9735 is used\. If we can determine a public IP
|
|
|
|
|
address from the resulting binding, the address is announced\.
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
If the argument begins with 'autotor:' then it is followed by the
|
2018-05-17 06:46:22 +02:00
|
|
|
|
IPv4 or IPv6 address of the Tor control port (default port 9051),
|
2020-03-30 11:22:12 +02:00
|
|
|
|
and this will be used to configure a Tor hidden service for port 9735\.
|
|
|
|
|
The Tor hidden service will be configured to point to the
|
|
|
|
|
first IPv4 or IPv6 address we bind to\.
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2019-11-15 09:47:21 +01:00
|
|
|
|
If the argument begins with 'statictor:' then it is followed by the
|
|
|
|
|
IPv4 or IPv6 address of the Tor control port (default port 9051),
|
2020-03-30 11:22:12 +02:00
|
|
|
|
and this will be used to configure a static Tor hidden service for port 9735\.
|
|
|
|
|
The Tor hidden service will be configured to point to the
|
2019-11-15 09:47:21 +01:00
|
|
|
|
first IPv4 or IPv6 address we bind to and is by default unique to
|
2020-03-30 11:22:12 +02:00
|
|
|
|
your nodes id\. You can add the text '/torblob=BLOB' followed by up to
|
2019-11-15 09:47:21 +01:00
|
|
|
|
64 Bytes of text to generate from this text a v3 onion service
|
2020-03-30 11:22:12 +02:00
|
|
|
|
address text unique to the first 32 Byte of this text\.
|
2019-11-15 09:47:21 +01:00
|
|
|
|
You can also use an postfix '/torport=TORPORT' to select the external
|
2020-03-30 11:22:12 +02:00
|
|
|
|
tor binding\. The result is that over tor your node is accessible by a port
|
2019-11-15 09:47:21 +01:00
|
|
|
|
defined by you and possible different from your local node port assignment
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
|
2018-05-17 06:46:22 +02:00
|
|
|
|
This option can be used multiple times to add more addresses, and
|
2020-03-30 11:22:12 +02:00
|
|
|
|
its use disables autolisten\. If necessary, and 'always-use-proxy'
|
2019-08-10 02:12:44 +02:00
|
|
|
|
is not specified, a DNS lookup may be done to resolve 'IPADDRESS'
|
2020-03-30 11:22:12 +02:00
|
|
|
|
or 'TORIPADDRESS'\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBbind-addr\fR=\fI[IPADDRESS[:PORT]]|SOCKETPATH\fR
|
|
|
|
|
Set an IP address or UNIX domain socket to listen to, but do not
|
|
|
|
|
announce\. A UNIX domain socket is distinguished from an IP address by
|
|
|
|
|
beginning with a \fI/\fR\.
|
|
|
|
|
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
An empty 'IPADDRESS' is a special value meaning bind to IPv4 and/or
|
|
|
|
|
IPv6 on all interfaces, '0\.0\.0\.0' means bind to all IPv4
|
|
|
|
|
interfaces, '::' means 'bind to all IPv6 interfaces'\. 'PORT' is
|
|
|
|
|
not specified, 9735 is used\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
This option can be used multiple times to add more addresses, and
|
|
|
|
|
its use disables autolisten\. If necessary, and 'always-use-proxy'
|
|
|
|
|
is not specified, a DNS lookup may be done to resolve 'IPADDRESS'\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBannounce-addr\fR=\fIIPADDRESS[:PORT]|TORADDRESS\.onion[:PORT]\fR
|
|
|
|
|
Set an IP (v4 or v6) address or Tor address to announce; a Tor address
|
|
|
|
|
is distinguished by ending in \fI\.onion\fR\. \fIPORT\fR defaults to 9735\.
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
|
|
|
|
|
Empty or wildcard IPv4 and IPv6 addresses don't make sense here\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
Also, unlike the 'addr' option, there is no checking that your
|
2020-03-30 11:22:12 +02:00
|
|
|
|
announced addresses are public (e\.g\. not localhost)\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
This option can be used multiple times to add more addresses, and
|
|
|
|
|
its use disables autolisten\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
2020-03-30 11:22:12 +02:00
|
|
|
|
If necessary, and 'always-use-proxy' is not specified, a DNS
|
|
|
|
|
lookup may be done to resolve 'IPADDRESS'\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBoffline\fR
|
|
|
|
|
Do not bind to any ports, and do not try to reconnect to any peers\. This
|
|
|
|
|
can be useful for maintenance and forensics, so is usually specified on
|
|
|
|
|
the command line\. Overrides all \fIaddr\fR and \fIbind-addr\fR options\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBautolisten\fR=\fIBOOL\fR
|
|
|
|
|
By default, we bind (and maybe announce) on IPv4 and IPv6 interfaces if
|
|
|
|
|
no \fIaddr\fR, \fIbind-addr\fR or \fIannounce-addr\fR options are specified\. Setting
|
|
|
|
|
this to \fIfalse\fR disables that\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBproxy\fR=\fIIPADDRESS[:PORT]\fR
|
|
|
|
|
Set a socks proxy to use to connect to Tor nodes (or for all connections
|
2020-09-11 13:00:14 +02:00
|
|
|
|
if \fBalways-use-proxy\fR is set)\. The port defaults to 9050 if not specified\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBalways-use-proxy\fR=\fIBOOL\fR
|
|
|
|
|
Always use the \fBproxy\fR, even to connect to normal IP addresses (you
|
|
|
|
|
can still connect to Unix domain sockets manually)\. This also disables
|
|
|
|
|
all DNS lookups, to avoid leaking information\.
|
|
|
|
|
|
2019-10-03 16:32:38 +02:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBdisable-dns\fR
|
|
|
|
|
Disable the DNS bootstrapping mechanism to find a node by its node ID\.
|
|
|
|
|
|
2019-10-03 16:32:38 +02:00
|
|
|
|
|
2019-09-25 14:18:09 +02:00
|
|
|
|
\fBenable-autotor-v2-mode\fR
|
|
|
|
|
Try to get a v2 onion address from the Tor service call, default is v3\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2019-10-03 16:32:38 +02:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fBtor-service-password\fR=\fIPASSWORD\fR
|
|
|
|
|
Set a Tor control password, which may be needed for \fIautotor:\fR to
|
|
|
|
|
authenticate to the Tor control port\.
|
|
|
|
|
|
|
|
|
|
.SH Lightning Plugins
|
|
|
|
|
|
|
|
|
|
\fBlightningd\fR(8) supports plugins, which offer additional configuration
|
|
|
|
|
options and JSON-RPC methods, depending on the plugin\. Some are supplied
|
|
|
|
|
by default (usually located in \fBlibexec/c-lightning/plugins/\fR)\. If a
|
|
|
|
|
\fBplugins\fR directory exists under \fIlightning-dir\fR that is searched for
|
|
|
|
|
plugins along with any immediate subdirectories)\. You can specify
|
|
|
|
|
additional paths too:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBplugin\fR=\fIPATH\fR
|
|
|
|
|
Specify a plugin to run as part of c-lightning\. This can be specified
|
|
|
|
|
multiple times to add multiple plugins\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBplugin-dir\fR=\fIDIRECTORY\fR
|
|
|
|
|
Specify a directory to look for plugins; all executable files not
|
|
|
|
|
containing punctuation (other than \fI\.\fR, \fI-\fR or \fI_) in 'DIRECTORY\fR are
|
|
|
|
|
loaded\. \fIDIRECTORY\fR must exist; this can be specified multiple times to
|
|
|
|
|
add multiple directories\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBclear-plugins\fR
|
2020-07-29 13:24:07 +02:00
|
|
|
|
This option clears all \fIplugin\fR, \fIimportant-plugin\fR, and \fIplugin-dir\fR options
|
|
|
|
|
preceeding it,
|
2019-08-10 02:12:44 +02:00
|
|
|
|
including the default built-in plugin directory\. You can still add
|
2020-07-29 13:24:07 +02:00
|
|
|
|
\fIplugin-dir\fR, \fIplugin\fR, and \fIimportant-plugin\fR options following this
|
|
|
|
|
and they will have the normal effect\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBdisable-plugin\fR=\fIPLUGIN\fR
|
2020-05-05 03:15:21 +02:00
|
|
|
|
If \fIPLUGIN\fR contains a /, plugins with the same path as \fIPLUGIN\fR will
|
|
|
|
|
not be loaded at startup\. Otherwise, no plugin with that base name will
|
|
|
|
|
be loaded at startup, whatever directory it is in\. This option is useful for
|
|
|
|
|
disabling a single plugin inside a directory\. You can still explicitly
|
|
|
|
|
load plugins which have been disabled, using \fBlightning-plugin\fR(7) \fBstart\fR\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-07-29 13:24:07 +02:00
|
|
|
|
|
|
|
|
|
\fBimportant-plugin\fR=\fIPLUGIN\fR
|
|
|
|
|
Speciy a plugin to run as part of C-lightning\.
|
|
|
|
|
This can be specified multiple times to add multiple plugins\.
|
|
|
|
|
Plugins specified via this option are considered so important, that if the
|
|
|
|
|
plugin stops for any reason (including via \fBlightning-plugin\fR(7) \fBstop\fR),
|
|
|
|
|
C-lightning will also stop running\.
|
|
|
|
|
This way, you can monitor crashes of important plugins by simply monitoring
|
|
|
|
|
if C-lightning terminates\.
|
2020-07-30 08:04:59 +02:00
|
|
|
|
Built-in plugins, which are installed with \fBlightningd\fR(8), are automatically
|
|
|
|
|
considered important\.
|
2020-07-29 13:24:07 +02:00
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH BUGS
|
|
|
|
|
|
|
|
|
|
You should report bugs on our github issues page, and maybe submit a fix
|
|
|
|
|
to gain our eternal gratitude!
|
|
|
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Rusty Russell <\fIrusty@rustcorp.com.au\fR> wrote this man page, and
|
2019-08-10 02:12:44 +02:00
|
|
|
|
much of the configuration language, but many others did the hard work of
|
|
|
|
|
actually implementing these options\.
|
|
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
|
|
|
|
\fBlightning-listconfigs\fR(7) \fBlightning-setchannelfee\fR(7) \fBlightningd\fR(8)
|
2020-06-29 08:28:46 +02:00
|
|
|
|
\fBlightning-hsmtool\fR(8)
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH COPYING
|
|
|
|
|
|
|
|
|
|
Note: the modules in the ccan/ directory have their own licenses, but
|
|
|
|
|
the rest of the code is covered by the BSD-style MIT license\.
|
|
|
|
|
|
2020-10-07 02:41:53 +02:00
|
|
|
|
\" SHA256STAMP:9d72136e5abae6cb8f36899ebaeed6644ea566e95ec1a6f8b13cc911ed64a294
|