]> git.bitcoin.ninja Git - rust-lightning/commit
Change default "impossibility penalty" to one Bitcoin 2022-07-explicit-avoid-retries
authorMatt Corallo <git@bluematt.me>
Thu, 7 Jul 2022 17:37:22 +0000 (17:37 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 14 Jul 2022 18:37:26 +0000 (18:37 +0000)
commita3547e29e5409413a0864b72813ac9c57bbd6d6f
tree36240587ca13b2d1e386f54efe6891d23d3cfe2f
parentec2b1ced077c879b0f51ef4fcd0b5d2d22aa570d
Change default "impossibility penalty" to one Bitcoin

In general we should avoid taking paths that we are confident will
not work as much possible, but we should be willing to try each
payment at least once, even if its over a channel that failed
recently. A full Bitcoin penalty for such a channel seems
reasonable - lightning fees are unlikely to ever reach that point
so such channels will be scored much worse than any other potential
path, while still being below `u64::max_value()`.
lightning/src/routing/scoring.rs