]> git.bitcoin.ninja Git - rust-lightning/commit
Ensure we don't ever retry a payment along a just-failed path 2022-01-offline-mobile-fail-fast
authorMatt Corallo <git@bluematt.me>
Tue, 18 Jan 2022 21:19:44 +0000 (21:19 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 18 Jan 2022 21:38:43 +0000 (21:38 +0000)
commit51d9c5467fce4522e8fb0eb32a750d0445f3ec9f
treeec2e3f40de455dbddb564eccd4cc5d8cddd0c3f3
parent7b6a7bbc722356e1ae6b196b95755424ea82b000
Ensure we don't ever retry a payment along a just-failed path

If we try to pay a mobile client behind an LSP, its not strange for
the singular last-hop hint to fail with a Temporary Channel Failure
(indicating the mobile app is not currently open and connected to
the LSP). In this case, we will penalize the last-hop channel but
try again along the same path anyway, because we have no other
path. This changes the retryer to simply refuse to do so, failing
the payment instead.

Fixes #1241.
lightning-invoice/src/payment.rs