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.
2 parents 479ff90 + af4eb23 commit 2ced708Copy full SHA for 2ced708
lightning-background-processor/src/lib.rs
@@ -50,7 +50,13 @@ const FRESHNESS_TIMER: u64 = 60;
50
#[cfg(test)]
51
const FRESHNESS_TIMER: u64 = 1;
52
53
+#[cfg(not(debug_assertions))]
54
const PING_TIMER: u64 = 5;
55
+/// Signature operations take a lot longer without compiler optimisations.
56
+/// Increasing the ping timer allows for this but slower devices will be disconnected if the
57
+/// timeout is reached.
58
+#[cfg(debug_assertions)]
59
+const PING_TIMER: u64 = 30;
60
61
/// Trait which handles persisting a [`ChannelManager`] to disk.
62
///
0 commit comments