FAQ.cl.md: formatting and updates

This commit is contained in:
openoms
2021-11-17 06:19:53 -06:00
parent 2594e8f1fa
commit a0fd288e55

View File

@@ -63,7 +63,6 @@ The channels would need to be closed to use the same funds in an other node.
* https://lightning.readthedocs.io/ * https://lightning.readthedocs.io/
## Commands and aliases ## Commands and aliases
* Check if the C-lightning daemon is running: * Check if the C-lightning daemon is running:
``` ```
sudo systemctl status lightningd sudo systemctl status lightningd
@@ -80,6 +79,7 @@ or with the alias: `cllog`
alias clconf='sudo nano /home/bitcoin/.lightning/config' alias clconf='sudo nano /home/bitcoin/.lightning/config'
alias cllog='sudo tail -n 30 -f /home/bitcoin/.lightning/bitcoin/cl.log' alias cllog='sudo tail -n 30 -f /home/bitcoin/.lightning/bitcoin/cl.log'
``` ```
## Directories ## Directories
* All data is stored on the disk in: * All data is stored on the disk in:
`/mnt/hdd/app-data/.lightningd` `/mnt/hdd/app-data/.lightningd`
@@ -93,7 +93,6 @@ or with the alias: `cllog`
* on the RaspiBlitz for mainnet * on the RaspiBlitz for mainnet
``` ```
network=bitcoin network=bitcoin
announce-addr=127.0.0.1:9736
log-file=cl.log log-file=cl.log
log-level=info log-level=info
plugin-dir=/home/bitcoin/cln-plugins-enabled plugin-dir=/home/bitcoin/cln-plugins-enabled
@@ -264,7 +263,8 @@ or with the alias: `cllog`
### Implemented plugins ### Implemented plugins
* summary * summary
* sparko * sparko
* clboss * [CLBOSS](#clboss)
* [feeadjuster](#feeadjuster)
### Add a custom plugin ### Add a custom plugin
* Place the plugin in the `/home/bitcoin/cl-plugins-enabled` directory * Place the plugin in the `/home/bitcoin/cl-plugins-enabled` directory
@@ -312,8 +312,9 @@ https://github.com/ZmnSCPxj/clboss#clboss-status
### Feeadjuster ### Feeadjuster
* Install: * Install:
`config.scripts/cl-plugin.feedadjuster.sh on`
* to set the default fees in the config add: * to set the default fees add to the C-lightning `config` file:
``` ```
fee-base=BASEFEE_IN_MILLISATS fee-base=BASEFEE_IN_MILLISATS
fee-per-satoshi=PPM_FEE_IN_SATS fee-per-satoshi=PPM_FEE_IN_SATS
@@ -526,7 +527,6 @@ Will need to pay through a peer which supports the onion messages which means yo
* https://bitcoin.stackexchange.com/questions/107484/how-can-i-decode-the-feature-string-of-a-lightning-node-with-bolt-9 * https://bitcoin.stackexchange.com/questions/107484/how-can-i-decode-the-feature-string-of-a-lightning-node-with-bolt-9
* Convert the hex number from `lightning-cli listpeers` to binary: https://www.binaryhexconverter.com/hex-to-binary-converter and count the position of the bits from the right. * Convert the hex number from `lightning-cli listpeers` to binary: https://www.binaryhexconverter.com/hex-to-binary-converter and count the position of the bits from the right.
## Testnets ## Testnets
* for testnet and signet there are prefixes `t` and `s` used for the aliases, daemons and their own plugin directory names. * for testnet and signet there are prefixes `t` and `s` used for the aliases, daemons and their own plugin directory names.
* Testnet * Testnet
@@ -576,16 +576,20 @@ To display it as text:
``` ```
sudo cat /home/bitcoin/.lightning/bitcoin/hsm_secret | xxd sudo cat /home/bitcoin/.lightning/bitcoin/hsm_secret | xxd
``` ```
### Channel database ### Channel database
* Stored on the disk and synchronised to the SDcard with the help of the bakcup plugin. * Stored on the disk and synchronised to the SDcard with the help of the `backup` plugin.
### Recovery ### Recovery
* https://lightning.readthedocs.io/FAQ.html#database-corruption-channel-state-lost * https://lightning.readthedocs.io/FAQ.html#database-corruption-channel-state-lost
* https://lightning.readthedocs.io/FAQ.html#loss * https://lightning.readthedocs.io/FAQ.html#loss
#### Recover from a cl-rescue file #### Recover from a cl-rescue file
* use the `REPAIR-CL` - `FILERESTORE` option in the menu for instructions to upload * use the `REPAIR-CL` - `FILERESTORE` option in the menu for instructions to upload
#### Recover from a seed #### Recover from a seed
* use the `REPAIR-CL` - `SEEDRESTORE` option in the menu for instructions to paste the seedwords to restore * use the `REPAIR-CL` - `SEEDRESTORE` option in the menu for instructions to paste the seedwords to restore
#### Rescan the chain after restoring a used c-lightning wallet #### Rescan the chain after restoring a used c-lightning wallet
* https://lightning.readthedocs.io/FAQ.html#rescanning-the-block-chain-for-lost-utxos * https://lightning.readthedocs.io/FAQ.html#rescanning-the-block-chain-for-lost-utxos
* Stop `lightningd`: * Stop `lightningd`:
@@ -619,19 +623,16 @@ To display it as text:
``` ```
## sqlite3 queries ## sqlite3 queries
* Query the reasons for force closes * Query the reasons for force closes
``` ```
sudo -u bitcoin sqlite3 /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3 'select short_channel_id, timestamp, cause, message from channel_state_changes inner join channels on channel_id = id where new_state = 7 order by timestamp' sudo -u bitcoin sqlite3 /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3 'select short_channel_id, timestamp, cause, message from channel_state_changes inner join channels on channel_id = id where new_state = 7 order by timestamp'
``` ```
* Query the reasons for cooperative channel closes * Query the reasons for cooperative channel closes
``` ```
sudo -u bitcoin sqlite3 /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3 'select short_channel_id, timestamp, cause, message from channel_state_changes inner join channels on channel_id = id where new_state = 4 order by timestamp' sudo -u bitcoin sqlite3 /home/bitcoin/.lightning/bitcoin/lightningd.sqlite3 'select short_channel_id, timestamp, cause, message from channel_state_changes inner join channels on channel_id = id where new_state = 4 order by timestamp'
``` ```
## Script file help list ## Script file help list
* generate a list of the help texts on a RaspiBlitz: * generate a list of the help texts on a RaspiBlitz:
``` ```
cd /home/admin/config.scripts/ cd /home/admin/config.scripts/