]> git.bitcoin.ninja Git - rust-lightning/commit
Try to overpay the recipient if we fail to find a path at all
authorMatt Corallo <git@bluematt.me>
Tue, 26 Sep 2023 21:58:53 +0000 (21:58 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Sep 2023 20:39:36 +0000 (20:39 +0000)
commitf3e33f40742e0543850a181718335e5d54e3bb7c
tree0fafbe45b2c074397944e53995cbbaad91cecda1
parent5861dde6923f0dbbd9145efe2747be3c13e60b92
Try to overpay the recipient if we fail to find a path at all

Previously we'd only try to overpay if we managed to find a path
to the recipient which was sufficient. However, if we fail to find
any path to the recipient at all we should still retry overpaying
the recipient. Ultimately we should be silling to pay whatever
reasonable performance penalty if the alternative is not finding a
path at all, which we do here.
lightning/src/routing/router.rs