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.
receive_htlcs
1 parent 2f5e940 commit cad3d32Copy full SHA for cad3d32
lightning/src/ln/channelmanager.rs
@@ -6424,7 +6424,10 @@ where
6424
6425
let mut receive_htlcs = Vec::new();
6426
mem::swap(&mut receive_htlcs, &mut self.receive_htlcs.lock().unwrap());
6427
- self.process_receive_htlcs(receive_htlcs, &mut new_events, &mut failed_forwards);
+ if !receive_htlcs.is_empty() {
6428
+ self.process_receive_htlcs(receive_htlcs, &mut new_events, &mut failed_forwards);
6429
+ should_persist = NotifyOption::DoPersist;
6430
+ }
6431
6432
let best_block_height = self.best_block.read().unwrap().height;
6433
let needs_persist = self.pending_outbound_payments.check_retry_payments(
0 commit comments