Skip to content

Commit b70343f

Browse files
committed
routing: add TODO to also delete payments without HTLCs
1 parent 81e7d0f commit b70343f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routing/router.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,11 @@ func (r *ChannelRouter) resumePayments() error {
14391439
log.Debugf("Scanning finished, found %d inflight payments",
14401440
len(payments))
14411441

1442+
// TODO(ziggie): Also check for payments which have no HTLCs at all
1443+
// this can happen because we register an attempt after initializing the
1444+
// payment, so there is a small chance that we init a payment but never
1445+
// register an attempt for it.
1446+
14421447
// Before we restart existing payments and start accepting more
14431448
// payments to be made, we clean the network result store of the
14441449
// Switch. We do this here at startup to ensure no more payments can be

0 commit comments

Comments
 (0)