From 0fc9368167db414622093dc803e76a2164fcc21d Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Wed, 3 Apr 2019 10:20:40 +0200 Subject: [PATCH] doc: commandline switch min-capacity-sat --- CHANGELOG.md | 1 + doc/lightningd-config.5 | 9 +++++++-- doc/lightningd-config.5.txt | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77edc8f17..083ccaa50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - JSON API: `newaddr` outputs `bech32` or `p2sh-segwit`, or both with new `all` parameter (#2390) - JSON API: `listpeers` status now shows how many confirmations until channel is open (#2405) +- Config: Adds parameter `min-capacity-sat` to reject tiny channels. ### Changed diff --git a/doc/lightningd-config.5 b/doc/lightningd-config.5 index 7832c463c..2bd9d97fa 100644 --- a/doc/lightningd-config.5 +++ b/doc/lightningd-config.5 @@ -2,12 +2,12 @@ .\" Title: lightningd-config .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 03/05/2019 +.\" Date: 03/27/2019 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "LIGHTNINGD\-CONFIG" "5" "03/05/2019" "\ \&" "\ \&" +.TH "LIGHTNINGD\-CONFIG" "5" "03/27/2019" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -196,6 +196,11 @@ The base fee to charge for every payment which passes through\&. Note that milli This is the proportional fee to charge for every payment which passes through\&. As percentages are too coarse, it\(cqs 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 lightningd\-setchannelfee(7)\&. .RE .PP +\fBmin\-capacity\-sat\fR=\fISATOSHI\fR +.RS 4 +This value defines the minimal effective channel capacity in satoshi to accept for channel opening requests\&. If a peer tries to open a channel smaller than this, the opening will be rejected\&. +.RE +.PP \fBignore\-fee\-limits\fR=\fIBOOL\fR .RS 4 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\&. diff --git a/doc/lightningd-config.5.txt b/doc/lightningd-config.5.txt index 6152dda6f..11c3c560f 100644 --- a/doc/lightningd-config.5.txt +++ b/doc/lightningd-config.5.txt @@ -151,6 +151,11 @@ Lightning node customization options not existing ones. If you want to change fees for existing channels, use the RPC call lightningd-setchannelfee(7). +*min-capacity-sat*='SATOSHI':: + This value defines the minimal effective channel capacity in satoshi to + accept for channel opening requests. If a peer tries to open a channel + smaller than this, the opening will be rejected. + *ignore-fee-limits*='BOOL':: Allow nodes which establish channels to us to set any fee they want. This may result in a channel which cannot be closed, should