From a57e34c71f82b5670cd053d84c299d6ea5f9a95d Mon Sep 17 00:00:00 2001 From: carla Date: Wed, 20 May 2020 13:42:21 +0200 Subject: [PATCH] lndclient: add lookup invoice function to client interface --- lndclient/lightning_client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lndclient/lightning_client.go b/lndclient/lightning_client.go index f09a43f..57827c2 100644 --- a/lndclient/lightning_client.go +++ b/lndclient/lightning_client.go @@ -39,6 +39,9 @@ type LightningClient interface { AddInvoice(ctx context.Context, in *invoicesrpc.AddInvoiceData) ( lntypes.Hash, string, error) + // LookupInvoice looks up an invoice by hash. + LookupInvoice(ctx context.Context, hash lntypes.Hash) (*Invoice, error) + // ListTransactions returns all known transactions of the backing lnd // node. ListTransactions(ctx context.Context) ([]*wire.MsgTx, error)