Skip to content

Commit a57e34c

Browse files
committed
lndclient: add lookup invoice function to client interface
1 parent 8b1cdd4 commit a57e34c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lndclient/lightning_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ type LightningClient interface {
3939
AddInvoice(ctx context.Context, in *invoicesrpc.AddInvoiceData) (
4040
lntypes.Hash, string, error)
4141

42+
// LookupInvoice looks up an invoice by hash.
43+
LookupInvoice(ctx context.Context, hash lntypes.Hash) (*Invoice, error)
44+
4245
// ListTransactions returns all known transactions of the backing lnd
4346
// node.
4447
ListTransactions(ctx context.Context) ([]*wire.MsgTx, error)

0 commit comments

Comments
 (0)