From f4f7b64b2d3697dba6b55c0eb05180c4e6047657 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 22 Aug 2018 09:32:43 +0200 Subject: [PATCH] lnwallet/channel: add FwdMinHtlc(), returning MinHTLC from localChanCfg --- lnwallet/channel.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index f654d1c6..bad130b1 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -6254,3 +6254,9 @@ func (lc *LightningChannel) RemoteCommitHeight() uint64 { return lc.channelState.RemoteCommitment.CommitHeight } + +// FwdMinHtlc returns the minimum HTLC value required by the remote node, i.e. +// the minimum value HTLC we can forward on this channel. +func (lc *LightningChannel) FwdMinHtlc() lnwire.MilliSatoshi { + return lc.localChanCfg.MinHTLC +}