Skip to content

Commit f4728a8

Browse files
GeorgeTsagkguggero
authored andcommitted
lndclient: add remote chan reserve option
1 parent 78dde32 commit f4728a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lightning_client.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ func WithScid() OpenChannelOption {
6464
}
6565
}
6666

67+
// WithRemoteReserve signals that the channel open should set a remote reserve
68+
// amount.
69+
func WithRemoteReserve(reserve uint64) OpenChannelOption {
70+
return func(r *lnrpc.OpenChannelRequest) {
71+
r.RemoteChanReserveSat = reserve
72+
}
73+
}
74+
6775
// LightningClient exposes base lightning functionality.
6876
type LightningClient interface {
6977
PayInvoice(ctx context.Context, invoice string,

0 commit comments

Comments
 (0)