routing: add new method registerAttempt

This commit adds a new method `registerAttempt` to take care of creating
and saving an htlc attempt to disk.
This commit is contained in:
yyforyongyu committed 2023-11-13 16:09:10 +08:00
1 parent 071d05e0e3
commit 568b977a1f
2 files changed
+34 -22

No files matched your search

+1 -1
View File
@@ -2506,7 +2506,7 @@ func (r *ChannelRouter) sendToRoute(htlcHash lntypes.Hash, rt *route.Route,
)
var shardError error
attempt, outcome, err := p.launchShard(rt, false)
attempt, outcome, err := p.launchShard(rt, 0)
// With SendToRoute, it can happen that the route exceeds protocol
// constraints. Mark the payment as failed with an internal error.