Commit Graph
2 Commits
Author SHA1 Message Date
such-gitea fbd0f9e1c1 fix(payments): confirm an invoice only when confirmed payments cover it
The reconciler took the deepest single payment's confirmations as the
invoice's. A tiny early payment could therefore make an unconfirmed top-up
count as confirmed, and InvoiceSettled fired before the money was final.

The invoice depth is now the depth at which payments, taken deepest first,
cover the whole amount. It is 0 while the invoice is underpaid.
2026-11-18 15:38:47 -05:00
jwinterm 9393fa6a99 feat: expose settlement evidence in Greenfield API 2026-07-16 08:12:53 -04:00