From 5dc648bcd322a4b29ef34ad8272a0ea072b758e4 Mon Sep 17 00:00:00 2001 From: George Tsagkarelis Date: Thu, 6 Jun 2024 19:30:16 +0200 Subject: [PATCH] lndclient: add remote chan reserve option --- lightning_client.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lightning_client.go b/lightning_client.go index 3ca22b5..f5a7c14 100644 --- a/lightning_client.go +++ b/lightning_client.go @@ -64,6 +64,15 @@ func WithScid() OpenChannelOption { } } +// WithRemoteReserve signals that the channel open should set a remote reserve +// amount. +func WithRemoteReserve(reserve uint64) OpenChannelOption { + return func(r *lnrpc.OpenChannelRequest) { + r.RemoteChanReserveSat = reserve + } + +} + // LightningClient exposes base lightning functionality. type LightningClient interface { PayInvoice(ctx context.Context, invoice string,