]> git.bitcoin.ninja Git - rust-lightning/commit
Factor invoice requests into payment path length limiting
authorValentine Wallace <vwallace@protonmail.com>
Wed, 18 Sep 2024 15:27:09 +0000 (11:27 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:59 +0000 (16:17 -0400)
commit34e710edd1f7c673bccdcc174620b74bb6b496b6
tree6eaf1de983757b1dda4a7ae040ad27072db865c1
parentd574de95f54affc39ed9b93c561d0210bde39808
Factor invoice requests into payment path length limiting

Async payments include the original invoice request in the payment onion.
Since invreqs may include blinded paths, it's important to factor them into our
max path length calculations since they may take up a significant portion of
the 1300-byte onion.
lightning/src/ln/onion_utils.rs
lightning/src/ln/outbound_payment.rs
lightning/src/routing/router.rs