paymentsdb: add more comments

This commit is contained in:
ziggie committed 2026-02-25 08:02:18 +01:00
1 parent ea4e183c39
commit bfd59aac22
2 files changed
+10 -3

No files matched your search

+4
View File
@@ -1767,6 +1767,10 @@ func (r *RouterBackend) MarshallPayment(payment *paymentsdb.MPPayment) (
// If any of the htlcs have settled, extract a valid
// preimage.
if htlc.Settle != nil {
// For AMP payments all hashes will be different so we
// will only show the last htlc preimage, this is a
// current limitation for AMP payments because for
// MPP payments all hashes are the same.
preimage = htlc.Settle.Preimage
fee += htlc.Route.TotalFees()
}