C-Otto/lnd-manageJ

Bug: "received via payments" shows incorrect amount

C-Otto opened this issue · 1 comments

Describe the bug
For some channels I see non-0 amounts as "received via payments", which causes the channel's rating to be very high. In some cases, for example for 750264x591x2, these numbers most likely are very wrong.

To Reproduce

  • curl -s http://localhost:8081/api/channel/750264x591x2/rating|jq -r ".details.\"750264x591x2 received via payments\""
  • curl -s http://localhost:8081/api/channel/750264x591x2/flow-report/last-days/45|jq -r .receivedViaPaymentsMilliSat

The payment information was missing. According to the database all settled payments with index X were already scanned and added, however the missing payment had a lower index.