routing: add TODO to also delete payments without HTLCs

This commit is contained in:
ziggie committed 2026-02-25 08:02:26 +01:00
1 parent 3ae0ccc6f5
commit 253e4fd832
1 file changed
+5
+5
View File
@@ -1439,6 +1439,11 @@ func (r *ChannelRouter) resumePayments() error {
log.Debugf("Scanning finished, found %d inflight payments",
len(payments))
// TODO(ziggie): Also check for payments which have no HTLCs at all
// this can happen because we register an attempt after initializing the
// payment, so there is a small chance that we init a payment but never
// register an attempt for it.
// Before we restart existing payments and start accepting more
// payments to be made, we clean the network result store of the
// Switch. We do this here at startup to ensure no more payments can be