multi: add keep-failed-payment-attempts flag

This commit is contained in:
Tommy Volk committed 2022-07-03 21:04:27 +00:00
1 parent e6277986fd
commit 8291e8a170
7 files changed
+72 -34

No files matched your search

+2 -2
View File
@@ -55,7 +55,7 @@ func (ps paymentState) terminated() bool {
}
// needWaitForShards returns a bool to specify whether we need to wait for the
// outcome of the shanrdHandler.
// outcome of the shardHandler.
func (ps paymentState) needWaitForShards() bool {
// If we have in flight shards and the payment is in final stage, we
// need to wait for the outcomes from the shards. Or if we have no more
@@ -279,7 +279,7 @@ lifecycle:
continue lifecycle
}
// If this route will consume the last remeining amount to send
// If this route will consume the last remaining amount to send
// to the receiver, this will be our last shard (for now).
lastShard := rt.ReceiverAmt() == currentState.remainingAmt