]> git.bitcoin.ninja Git - rust-lightning/commit
Set max path len on receipt of static invoice.
authorValentine Wallace <vwallace@protonmail.com>
Thu, 29 Aug 2024 19:12:41 +0000 (15:12 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 13 Sep 2024 14:40:06 +0000 (10:40 -0400)
commit8569830eb09338bd4deed80f2617ceaeadc6ec4e
treed13e8d234f680d2db491578ca1e039d2fec879cd
parente4d7681cba45da748c2863100ac036f84e96f343
Set max path len on receipt of static invoice.

Because we may receive a static invoice to pay days before the recipient
actually comes back online to receive the payment, it's good to do as many
checks as we can up-front. Here we ensure that the blinded paths provided
in the invoice won't cause us to exceed the maximum onion packet size.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs