File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,9 @@ const MAX_UPDATE_ATTEMPTS: u8 = 3;
160
160
#[ cfg( async_payments) ]
161
161
const OFFER_REFRESH_THRESHOLD : Duration = Duration :: from_secs ( 2 * 60 * 60 ) ;
162
162
163
+ // Require offer paths that we receive to last at least 3 months.
163
164
#[ cfg( async_payments) ]
164
- const MIN_OFFER_PATHS_RELATIVE_EXPIRY_SECS : u64 = 3 * 60 * 60 ;
165
+ const MIN_OFFER_PATHS_RELATIVE_EXPIRY_SECS : u64 = 3 * 30 * 24 * 60 * 60 ;
165
166
166
167
#[ cfg( async_payments) ]
167
168
impl AsyncReceiveOfferCache {
@@ -197,7 +198,7 @@ impl AsyncReceiveOfferCache {
197
198
return false ;
198
199
}
199
200
200
- // Require the offer that would be built using these paths to last at least a few hours .
201
+ // Require the offer that would be built using these paths to last at least a few months .
201
202
let min_offer_paths_absolute_expiry =
202
203
duration_since_epoch. as_secs ( ) . saturating_add ( MIN_OFFER_PATHS_RELATIVE_EXPIRY_SECS ) ;
203
204
let offer_paths_absolute_expiry = message. paths_absolute_expiry . unwrap_or ( u64:: MAX ) ;
You can’t perform that action at this time.
0 commit comments