[bug]: TrackPayments
occasionally returns two failed payments
#9542
Labels
bug
Unintended code behaviour
TrackPayments
occasionally returns two failed payments
#9542
Background
I am currently building a tool to store all my failed payments in a sql database. I noticed that occasionally payments with the status FAILED are returned twice with different
failure_reason
. Which in the end led to a unique constraint violation in my database.With
bos probe
the behavior is reproducible. But it also occurs with payments outside ofbos
, e.g. very rarely with the regolancer.Your environment
lnd 0.18.5
Expected behaviour
A failed payment should only be sent once so that a clear reason for the error can be identified.
The text was updated successfully, but these errors were encountered: