Skip to content

Commit 3364862

Browse files
committed
lndclient: add remote max HTLC option
1 parent f4728a8 commit 3364862

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning_client.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ func WithRemoteReserve(reserve uint64) OpenChannelOption {
7272
}
7373
}
7474

75+
// WithRemoteMaxHtlc limits the number of htlcs the remote party can offer.
76+
func WithRemoteMaxHtlc(maxHtlc uint32) OpenChannelOption {
77+
return func(r *lnrpc.OpenChannelRequest) {
78+
r.RemoteMaxHtlcs = maxHtlc
79+
}
80+
}
81+
7582
// LightningClient exposes base lightning functionality.
7683
type LightningClient interface {
7784
PayInvoice(ctx context.Context, invoice string,

0 commit comments

Comments
 (0)