@@ -50,7 +50,7 @@ use crate::blinded_path::message::BlindedMessagePath;
50
50
use crate :: blinded_path:: payment:: { Bolt12OfferContext , Bolt12RefundContext , PaymentContext } ;
51
51
use crate :: blinded_path:: message:: OffersContext ;
52
52
use 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 } ;
54
54
use crate :: types:: features:: Bolt12InvoiceFeatures ;
55
55
use crate :: ln:: functional_test_utils:: * ;
56
56
use crate :: ln:: msgs:: { BaseMessageHandler , ChannelMessageHandler , Init , NodeAnnouncement , OnionMessage , OnionMessageHandler , RoutingMessageHandler , SocketAddress , UnsignedGossipMessage , UnsignedNodeAnnouncement } ;
@@ -67,6 +67,10 @@ use crate::routing::router::{PaymentParameters, RouteParameters, RouteParameters
67
67
use crate :: sign:: { NodeSigner , Recipient } ;
68
68
use crate :: util:: ser:: Writeable ;
69
69
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
+
70
74
use crate :: prelude:: * ;
71
75
72
76
macro_rules! expect_recent_payment {
0 commit comments