From e07ad713266dd51cae0f5cc4da524195c73ba63f Mon Sep 17 00:00:00 2001 From: openoms Date: Sat, 13 Aug 2022 08:44:01 +0100 Subject: [PATCH] FAQ.cln: poncho, CLN cheatsheet, extract privkey --- FAQ.cl.md | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/FAQ.cl.md b/FAQ.cl.md index 9424c3c0b..102d89a1c 100644 --- a/FAQ.cl.md +++ b/FAQ.cl.md @@ -13,6 +13,7 @@ - [Directories](#directories) - [Config file](#config-file) - [Default values](#default-values) +- [CLN cheatsheet](#cln-cheatsheet) - [Plug-ins](#plug-ins) - [General info](#general-info) - [Directories](#directories-1) @@ -27,7 +28,8 @@ - [Fundchannel syntax](#fundchannel-syntax) - [Multifundchannel syntax](#multifundchannel-syntax) - [Offers](#offers) - - [About the feature bits](#about-the-feature-bits) + - [Poncho - hosted channels](#poncho---hosted-channels) +- [Feature bits](#feature-bits) - [Testnets](#testnets) - [Backups](#backups) - [Backup strategy](#backup-strategy) @@ -43,6 +45,7 @@ - [Rescan the chain after restoring a used CLN wallet](#rescan-the-chain-after-restoring-a-used-cln-wallet) - [Guesstoremote to recover funds from force-closed channels](#guesstoremote-to-recover-funds-from-force-closed-channels) - [sqlite3 queries](#sqlite3-queries) +- [Extract the private and public key from the hsm_secret file](#extract-the-private-and-public-key-from-the-hsm_secret-file) - [Update](#update) - [Update to a new CLN release](#update-to-a-new-cln-release) - [Experimental update to the latest master](#experimental-update-to-the-latest-master) @@ -90,7 +93,6 @@ or with the alias: `cllog` alias clconf='sudo nano /home/bitcoin/.lightning/config' alias cllog='sudo tail -n 30 -f /home/bitcoin/.lightning/bitcoin/cl.log' ``` - ## Directories * All data is stored on the disk in: `/mnt/hdd/app-data/.lightningd` @@ -115,6 +117,9 @@ or with the alias: `cllog` ``` * find [all the possible config options](#all-possible-config-options) below. +## CLN cheatsheet + + ## Plug-ins ### General info @@ -412,9 +417,13 @@ Will need to pay through a peer which supports the onion messages which means yo ``` The `pay_index` will increase as the offer gets reused. -### About the feature bits -* 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. +### Poncho - hosted channels +* +* + +## Feature bits +* +* Convert the hex number from `lightning-cli listpeers` to binary: and count the position of the bits from the right. ## Testnets * for testnet and signet there are prefixes `t` and `s` used for the aliases, daemons and their own plugin directory names. @@ -448,11 +457,11 @@ Will need to pay through a peer which supports the onion messages which means yo ``` ## Backups -* https://lightning.readthedocs.io/FAQ.html#how-to-backup-my-wallet -* General details: https://lightning.readthedocs.io/BACKUP.html +*<> https://lightning.readthedocs.io/FAQ.html#how-to-backup-my-wallet> +* General details: ### Backup strategy -* discussed in https://github.com/rootzoll/raspiblitz/issues/2983 +* discussed in * store your seed (or the `hsm_secret` HEX) as text. * the channel database (`lightningd.sqlite3`) is replicated to the SDcard real-time. @@ -609,6 +618,9 @@ Will need to pay through a peer which supports the onion messages which means yo 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' ``` +## Extract the private and public key from the hsm_secret file + + ## Update ### Update to a new CLN release * See the tagged releases by the CLN team: [github.com/ElementsProject/lightning/releases](https://github.com/ElementsProject/lightning/releases)