We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b74ed4 commit d4d1659Copy full SHA for d4d1659
lightning/src/ln/channelmanager.rs
@@ -10063,7 +10063,8 @@ where
10063
let first_hops = self.list_usable_channels();
10064
let payee_node_id = self.get_our_node_id();
10065
10066
- const SECONDS_PER_BLOCK: u32 = 10 * 60;
+ // Assume shorter than usual block times to avoid spuriously failing payments too early.
10067
+ const SECONDS_PER_BLOCK: u32 = 9 * 60;
10068
let relative_expiry_blocks = relative_expiry_seconds / SECONDS_PER_BLOCK;
10069
let max_cltv_expiry = core::cmp::max(relative_expiry_blocks, CLTV_FAR_FAR_AWAY)
10070
.saturating_add(LATENCY_GRACE_PERIOD_BLOCKS)
0 commit comments