Skip to content

Commit 5811f52

Browse files
committed
Introduce retry_invoice_request_message code within timer_tick_occurred.
1. And introduce static CALL_COUNTER, to trigger the `timer_tick_occurred` code only every 10th call. 2. Decrease Freshness timer duration. 3. This is done so that `retry_invoice_request_messages` can be called faster than the rest of the code without introducing a secondary timer.
1 parent 12af26d commit 5811f52

File tree

2 files changed

+254
-231
lines changed

2 files changed

+254
-231
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub struct BackgroundProcessor {
9393
}
9494

9595
#[cfg(not(test))]
96-
const FRESHNESS_TIMER: u64 = 60;
96+
const FRESHNESS_TIMER: u64 = 6;
9797
#[cfg(test)]
9898
const FRESHNESS_TIMER: u64 = 1;
9999

0 commit comments

Comments
 (0)