@@ -769,15 +769,21 @@ type ForceCloseAnchorState int32
769769const (
770770 // ForceCloseAnchorStateLimbo is set if the recovered_balance is zero
771771 // and limbo_balance is non-zero.
772- ForceCloseAnchorStateLimbo = ForceCloseAnchorState (lnrpc .PendingChannelsResponse_ForceClosedChannel_LIMBO )
772+ ForceCloseAnchorStateLimbo = ForceCloseAnchorState (
773+ lnrpc .PendingChannelsResponse_ForceClosedChannel_LIMBO ,
774+ )
773775
774776 // ForceCloseAnchorStateRecovered is set if the recovered_balance is
775777 // non-zero.
776- ForceCloseAnchorStateRecovered = ForceCloseAnchorState (lnrpc .PendingChannelsResponse_ForceClosedChannel_RECOVERED )
778+ ForceCloseAnchorStateRecovered = ForceCloseAnchorState (
779+ lnrpc .PendingChannelsResponse_ForceClosedChannel_RECOVERED ,
780+ )
777781
778782 // ForceCloseAnchorStateLost indicates a state that is neither
779783 // ForceCloseAnchorStateLimbo nor ForceCloseAnchorStateRecovered.
780- ForceCloseAnchorStateLost = ForceCloseAnchorState (lnrpc .PendingChannelsResponse_ForceClosedChannel_LOST )
784+ ForceCloseAnchorStateLost = ForceCloseAnchorState (
785+ lnrpc .PendingChannelsResponse_ForceClosedChannel_LOST ,
786+ )
781787)
782788
783789// String provides the string representation of a close initiator.
@@ -2157,7 +2163,8 @@ type WaitingCloseChannel struct {
21572163 RemotePending chainhash.Hash
21582164
21592165 // ChanStatusFlags specifies the current channel state, examples:
2160- // - ChanStatusBorked|ChanStatusCommitBroadcasted|ChanStatusLocalCloseInitiator
2166+ // - ChanStatusBorked|ChanStatusCommitBroadcasted|
2167+ // ChanStatusLocalCloseInitiator
21612168 // - ChanStatusCoopBroadcasted|ChanStatusLocalCloseInitiator
21622169 // - ChanStatusCoopBroadcasted|ChanStatusRemoteCloseInitiator
21632170 ChanStatusFlags string
@@ -2167,8 +2174,8 @@ type WaitingCloseChannel struct {
21672174}
21682175
21692176// PendingChannels returns a list of lnd's pending channels.
2170- func (s * lightningClient ) PendingChannels (ctx context. Context ) ( * PendingChannels ,
2171- error ) {
2177+ func (s * lightningClient ) PendingChannels (
2178+ ctx context. Context ) ( * PendingChannels , error ) {
21722179
21732180 rpcCtx , cancel := context .WithTimeout (ctx , s .timeout )
21742181 defer cancel ()
@@ -2182,9 +2189,16 @@ func (s *lightningClient) PendingChannels(ctx context.Context) (*PendingChannels
21822189 }
21832190
21842191 pending := & PendingChannels {
2185- PendingForceClose : make ([]ForceCloseChannel , len (resp .PendingForceClosingChannels )),
2186- PendingOpen : make ([]PendingChannel , len (resp .PendingOpenChannels )),
2187- WaitingClose : make ([]WaitingCloseChannel , len (resp .WaitingCloseChannels )),
2192+ PendingForceClose : make (
2193+ []ForceCloseChannel ,
2194+ len (resp .PendingForceClosingChannels ),
2195+ ),
2196+ PendingOpen : make (
2197+ []PendingChannel , len (resp .PendingOpenChannels ),
2198+ ),
2199+ WaitingClose : make (
2200+ []WaitingCloseChannel , len (resp .WaitingCloseChannels ),
2201+ ),
21882202 }
21892203
21902204 for i , force := range resp .PendingForceClosingChannels {
@@ -3053,8 +3067,8 @@ func (s *lightningClient) getOpenStatusUpdate(
30533067// OpenChannelStream opens a channel to the specified peer and with the
30543068// specified arguments and options. This function returns a stream of
30553069// updates.
3056- func (s * lightningClient ) OpenChannelStream (ctx context.Context , peer route. Vertex ,
3057- localSat , pushSat btcutil.Amount , private bool ,
3070+ func (s * lightningClient ) OpenChannelStream (ctx context.Context ,
3071+ peer route. Vertex , localSat , pushSat btcutil.Amount , private bool ,
30583072 opts ... OpenChannelOption ) (<- chan * OpenStatusUpdate , <- chan error ,
30593073 error ) {
30603074
@@ -3288,6 +3302,7 @@ func (s *lightningClient) CloseChannel(ctx context.Context,
32883302 return updateChan , errChan , nil
32893303}
32903304
3305+ // InboundFee holds the inbound fee policy for a channel.
32913306type InboundFee struct {
32923307 // BaseFeeMsat is the inbound base fee charged regardless of the number
32933308 // of milli-satoshis received in the channel. By default, only negative
0 commit comments