Skip to content

Commit

Permalink
TODO:routing: conditionally fail payments during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 6, 2023
1 parent 4491bed commit 82cc96d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions routing/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,10 @@ func (r *ChannelRouter) Start() error {

// If any payments are still in flight, we resume, to make sure their
// results are properly handled.
//
// TODO(yy): check the HTLCs here, if there's no settled HTLCs, and the
// network results of the rest cannot be found, we can fail the payment
// here.
payments, err := r.cfg.Control.FetchInFlightPayments()
if err != nil {
return err
Expand Down

0 comments on commit 82cc96d

Please sign in to comment.