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 a917d5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lightning_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ func WithScid() OpenChannelOption {
}
}

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 a917d5a

Please sign in to comment.