]> git.bitcoin.ninja Git - rust-lightning/commit
Use compact blinded paths for short-lived offers
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 28 May 2024 23:43:45 +0000 (18:43 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 5 Jun 2024 22:52:30 +0000 (17:52 -0500)
commit8012c2b213127372bdad150cdc354920d971087d
tree56a32651e1dc66dd13fdddc0afba101ccff40403
parent411b9b43f6089b1482eb9831742bf5ecb8238e0d
Use compact blinded paths for short-lived offers

When an offer is short-lived, the likelihood of a channel used in a
compact blinded path going away is low. Require passing the absolute
expiry of an offer to ChannelManager::create_offer_builder so that it
can be used to determine whether or not compact blinded path should be
used.

Use the same criteria for creating blinded paths for refunds as well.
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs