Skip to content

Conversation

@carlaKC
Copy link
Contributor

@carlaKC carlaKC commented May 20, 2020

No description provided.

@carlaKC carlaKC requested review from bhandras and guggero May 20, 2020 12:01
Copy link
Contributor

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, LGTM 💯

AddInvoice(ctx context.Context, in *invoicesrpc.AddInvoiceData) (
lntypes.Hash, string, error)

// LookupInvoice looks up an invoice.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ...looks up an invoice by its hash. ?

type Invoice struct {
// Preimage is the invoice's preimage, which is set if the invoice
// is settled.
Preiamge *lntypes.Preimage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

@carlaKC carlaKC force-pushed the lndclient-lookupinvoice branch 2 times, most recently from ee88eb4 to dc489d3 Compare May 20, 2020 12:20
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇

Hash: hash,
PaymentRequest: payReqString,
Amount: in.Value,
CreationDate: time.Now(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could just fill creationDate here as it already is set to time.Now() earlier (also it's probably better to use that).

@carlaKC carlaKC force-pushed the lndclient-lookupinvoice branch from dc489d3 to a57e34c Compare May 21, 2020 07:02
@carlaKC carlaKC merged commit 3f10407 into lightninglabs:master May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants