From b11f03bd18b2ba7e02368485efc3c26ab64be206 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 5 Jan 2024 22:09:32 +0000 Subject: [PATCH] servo: clightning: docs --- .../services/cryptocurrencies/clightning.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/hosts/by-name/servo/services/cryptocurrencies/clightning.nix b/hosts/by-name/servo/services/cryptocurrencies/clightning.nix index 71950dd7..52700bd0 100644 --- a/hosts/by-name/servo/services/cryptocurrencies/clightning.nix +++ b/hosts/by-name/servo/services/cryptocurrencies/clightning.nix @@ -2,6 +2,7 @@ # as such, this assumes that `services.bitcoin` is enabled. # docs: # - tor clightning config: +# - `lightning-cli` and subcommands: # # management/setup/use: # - guide: @@ -25,16 +26,23 @@ # - a lot of the larger nodes allow hands-free channel creation # - either inbound or outbound, sometimes paid # - find nodes on: +# - # - +# - tor nodes: # - # - -# - tor nodes: # - a few tor-capable nodes which allow channel creation: # - # - # - # - # - more resources: +# - node routability: https://hashxp.org/lightning/node/ +# +# tune payment parameters +# - `lightning-cli setchannel id [feebase] [feeppm] [htlcmin] [htlcmax] [enforcedelay] [ignorefeelimits]` +# - e.g. `lightning-cli setchannel all 0 10` +# - it's suggested that feebase=0 simplifies routing. # # teardown: # - `lightning-cli withdraw [feerate]` @@ -47,6 +55,11 @@ # - then give the resulting bolt11 URI to the payer # to send a payment: # - `lightning-cli pay ` +# - or `lightning-cli pay [amount_msat] [label] [riskfactor] [maxfeepercent] ...` +# - amount_msat must be "null" if the bolt11 URI specifies a value +# - riskfactor defaults to 10 +# - maxfeepercent defaults to 0.5 +# - label is a human-friendly label for my records { config, ... }: {