We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4728a8 commit 3364862Copy full SHA for 3364862
lightning_client.go
@@ -72,6 +72,13 @@ func WithRemoteReserve(reserve uint64) OpenChannelOption {
72
}
73
74
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
+
82
// LightningClient exposes base lightning functionality.
83
type LightningClient interface {
84
PayInvoice(ctx context.Context, invoice string,
0 commit comments