From d8fd6fae2338629015d7f35cab1f352483d50307 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 15 Nov 2019 09:41:01 +0100 Subject: [PATCH] config+channeldb: describe min_htlc fields more accurately --- channeldb/graph.go | 4 ++-- config.go | 2 +- server.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/channeldb/graph.go b/channeldb/graph.go index 275d6858b..c38876557 100644 --- a/channeldb/graph.go +++ b/channeldb/graph.go @@ -2767,11 +2767,11 @@ type ChannelEdgePolicy struct { // the node would like to HTLC exchanges. TimeLockDelta uint16 - // MinHTLC is the smallest value HTLC this node will accept, expressed + // MinHTLC is the smallest value HTLC this node will forward, expressed // in millisatoshi. MinHTLC lnwire.MilliSatoshi - // MaxHTLC is the largest value HTLC this node will accept, expressed + // MaxHTLC is the largest value HTLC this node will forward, expressed // in millisatoshi. MaxHTLC lnwire.MilliSatoshi diff --git a/config.go b/config.go index 35f02d686..e9e0fb59b 100644 --- a/config.go +++ b/config.go @@ -166,7 +166,7 @@ type chainConfig struct { DefaultNumChanConfs int `long:"defaultchanconfs" description:"The default number of confirmations a channel must have before it's considered open. If this is not set, we will scale the value according to the channel size."` DefaultRemoteDelay int `long:"defaultremotedelay" description:"The default number of blocks we will require our channel counterparty to wait before accessing its funds in case of unilateral close. If this is not set, we will scale the value according to the channel size."` - MinHTLC lnwire.MilliSatoshi `long:"minhtlc" description:"The smallest HTLC we are willing to forward on our channels, in millisatoshi"` + MinHTLC lnwire.MilliSatoshi `long:"minhtlc" description:"The smallest HTLC we are willing to accept on our channels, in millisatoshi"` BaseFee lnwire.MilliSatoshi `long:"basefee" description:"The base fee in millisatoshi we will charge for forwarding payments on our channels"` FeeRate lnwire.MilliSatoshi `long:"feerate" description:"The fee rate used when forwarding payments on our channels. The total fee charged is basefee + (amount * feerate / 1000000), where amount is the forwarded amount."` TimeLockDelta uint32 `long:"timelockdelta" description:"The CLTV delta we will subtract from a forwarded HTLC's timelock value"` diff --git a/server.go b/server.go index dd8fadc2b..74888bc40 100644 --- a/server.go +++ b/server.go @@ -3084,6 +3084,7 @@ type openChanReq struct { private bool + // minHtlc is the minimum incoming htlc that we accept. minHtlc lnwire.MilliSatoshi remoteCsvDelay uint16