Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit fails if AMP invoices are present #126

Open
rkfg opened this issue Jun 19, 2021 · 0 comments
Open

Audit fails if AMP invoices are present #126

rkfg opened this issue Jun 19, 2021 · 0 comments
Assignees

Comments

@rkfg
Copy link

rkfg commented Jun 19, 2021

frcli audit doesn't work due to "invalid" invoices with missing preimage. From what I see this happens when you send AMP invoices (I used them to rebalance my own channels sending to myself). Other features work as expected.

Expected behavior

frcli audit returns something meaningful.

Actual behavior

[frcli] rpc error: code = Unknown desc = ListInvoices failed: invalid preimage length of 0, want 32

To reproduce

  • Send an AMP invoice to yourself using lncli sendpayment --amp
  • run frcli audit

System information

Standalone Faraday, compiled myself from master. Running on Debian 10.9 amd64.

Additional information

I used lncli listinvoices --max_invoices 100000 | jq '.invoices|map(select(.is_amp == true and .r_preimage == null))' to see if my theory is correct and indeed, there are many invoices with both is_amp set and r_preimage being null. Filtering by .is_amp != true and .r_preimage == null and .is_amp == true and .r_preimage != null yields no results.

@carlaKC carlaKC self-assigned this Jun 21, 2021
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

No branches or pull requests

2 participants