From f03f5c08897b0990eabc99401426c14d53f90848 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Fri, 25 Aug 2023 14:43:06 +0200 Subject: [PATCH] make GetChannel return htlcMinMsat --- cln/cln_client.go | 1 + lightning/client.go | 1 + lnd/client.go | 1 + 3 files changed, 3 insertions(+) diff --git a/cln/cln_client.go b/cln/cln_client.go index c80ffe0..c2c8b83 100644 --- a/cln/cln_client.go +++ b/cln/cln_client.go @@ -170,6 +170,7 @@ func (c *ClnClient) GetChannel(peerID []byte, channelPoint wire.OutPoint) (*ligh return &lightning.GetChannelResult{ InitialChannelID: *initialChanID, ConfirmedChannelID: *confirmedChanID, + HtlcMinimumMsat: c.HtlcMinMilliSatoshi, }, nil } } diff --git a/lightning/client.go b/lightning/client.go index 009e562..7aba6ea 100644 --- a/lightning/client.go +++ b/lightning/client.go @@ -15,6 +15,7 @@ type GetInfoResult struct { type GetChannelResult struct { InitialChannelID basetypes.ShortChannelID ConfirmedChannelID basetypes.ShortChannelID + HtlcMinimumMsat uint64 } type OpenChannelRequest struct { diff --git a/lnd/client.go b/lnd/client.go index 90ae714..eacaad3 100644 --- a/lnd/client.go +++ b/lnd/client.go @@ -309,6 +309,7 @@ func (c *LndClient) GetChannel(peerID []byte, channelPoint wire.OutPoint) (*ligh return &lightning.GetChannelResult{ InitialChannelID: basetypes.ShortChannelID(c.ChanId), ConfirmedChannelID: basetypes.ShortChannelID(confirmedChanId), + HtlcMinimumMsat: c.LocalConstraints.MinHtlcMsat, }, nil } }