Skip to content

Commit

Permalink
lndclient: add remote chan reserve option
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Jun 6, 2024
1 parent 6b56ac8 commit 5dc648b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lightning_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5dc648b

Please sign in to comment.