Update 13_2_Knowing_Your_lightning_Setup.md

This commit is contained in:
Javier Vargas 2020-07-16 17:21:53 +02:00 committed by GitHub
parent 5dd75dcc46
commit c73cb37efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,13 @@ To start with, you should understand where everything is kept: the `~/.lightning
The main directory just contains as many networks as configured, in this case we have testnet directory. The main directory just contains as many networks as configured, in this case we have testnet directory.
``` ```
$ ls ~/.lightning c$ ls ~/.lightning
testnet testnet
``` ```
In your ~/.lightning/testnet directory, you'll find that contains all of the guts: In your ~/.lightning/testnet directory, you'll find that contains all of the guts:
``` ```
$ ls ~/.lightning/testnet3 c$ ls ~/.lightning/testnet3
config gossip_store hsm_secret lightningd.sqlite3 lightningd.sqlite3-journal lightning-rpc config gossip_store hsm_secret lightningd.sqlite3 lightningd.sqlite3-journal lightning-rpc
``` ```
@ -27,7 +27,7 @@ config gossip_store hsm_secret lightningd.sqlite3 lightningd.sqlite3-journal
Most of your early work will be done with the `lightning-cli` command, which offers an easy interface to `lightningd`. Most of your early work will be done with the `lightning-cli` command, which offers an easy interface to `lightningd`.
``` ```
$ lightning-cli help c$ lightning-cli help
lightning-cli: WARNING: default network changing in 2020: please set network=testnet in config! lightning-cli: WARNING: default network changing in 2020: please set network=testnet in config!
=== bitcoin === === bitcoin ===
@ -231,15 +231,15 @@ run `lightning-cli help <command>` for more information on a specific command
A variety of lightning-cli commands can give you additional information on your lightning node. The most general ones are: A variety of lightning-cli commands can give you additional information on your lightning node. The most general ones are:
``` ```
$ lightning-cli listconfigs c$ lightning-cli listconfigs
$ lightning-cli listfunds c$ lightning-cli listfunds
$ lightning-cli listtransactions c$ lightning-cli listtransactions
$ lightning-cli listinvoices c$ lightning-cli listinvoices
$ lightning-cli listnodes c$ lightning-cli listnodes
``` ```
For example `lightning-cli listconfigs` gives you a variety of information on your setup: For example `lightning-cli listconfigs` gives you a variety of information on your setup:
``` ```
lightning-cli --network=testnet listconfigs c$ lightning-cli --network=testnet listconfigs
{ {
"# version": "v0.8.2-398-g869fa08", "# version": "v0.8.2-398-g869fa08",
"lightning-dir": "/home/user/.lightning", "lightning-dir": "/home/user/.lightning",