Skip to content

Commit 74b7455

Browse files
committed
lsps2: Extend opening parameter validity
Keep built-in service parameters usable beyond the client cache safety margin so freshly negotiated leases are not rejected due to timing. Co-Authored-By: HAL 9000
1 parent b594e2c commit 74b7455

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/liquidity/service/lsps2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::logger::{log_error, LdkLogger};
2626
use crate::types::{ChannelManager, KeysManager, LiquidityManager, PeerManager, Wallet};
2727
use crate::{total_anchor_channels_reserve_sats, Config};
2828

29-
const LSPS2_GETINFO_REQUEST_EXPIRY: Duration = Duration::from_secs(60 * 60 * 24);
29+
const LSPS2_GETINFO_REQUEST_EXPIRY: Duration = Duration::from_secs(60 * 60 * 48);
3030
const LSPS2_CHANNEL_CLTV_EXPIRY_DELTA: u32 = 72;
3131

3232
pub(crate) struct LSPS2Service {

0 commit comments

Comments
 (0)