@@ -50,7 +50,7 @@ use crate::blinded_path::message::BlindedMessagePath;
5050use crate :: blinded_path:: payment:: { Bolt12OfferContext , Bolt12RefundContext , PaymentContext } ;
5151use crate :: blinded_path:: message:: OffersContext ;
5252use crate :: events:: { ClosureReason , Event , HTLCHandlingFailureType , PaidBolt12Invoice , PaymentFailureReason , PaymentPurpose } ;
53- use crate :: ln:: channelmanager:: { Bolt12PaymentError , MAX_SHORT_LIVED_RELATIVE_EXPIRY , PaymentId , RecentPaymentDetails , RecipientOnionFields , Retry , self } ;
53+ use crate :: ln:: channelmanager:: { Bolt12PaymentError , PaymentId , RecentPaymentDetails , RecipientOnionFields , Retry , self } ;
5454use crate :: types:: features:: Bolt12InvoiceFeatures ;
5555use crate :: ln:: functional_test_utils:: * ;
5656use crate :: ln:: msgs:: { BaseMessageHandler , ChannelMessageHandler , Init , NodeAnnouncement , OnionMessage , OnionMessageHandler , RoutingMessageHandler , SocketAddress , UnsignedGossipMessage , UnsignedNodeAnnouncement } ;
@@ -67,6 +67,10 @@ use crate::routing::router::{PaymentParameters, RouteParameters, RouteParameters
6767use crate :: sign:: { NodeSigner , Recipient } ;
6868use crate :: util:: ser:: Writeable ;
6969
70+ /// This used to determine whether we built a compact path or not, but now its just a random
71+ /// constant we apply to blinded path expiry in these tests.
72+ const MAX_SHORT_LIVED_RELATIVE_EXPIRY : Duration = Duration :: from_secs ( 60 * 60 * 24 ) ;
73+
7074use crate :: prelude:: * ;
7175
7276macro_rules! expect_recent_payment {
0 commit comments