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 b20e481 commit 8e48aa5Copy full SHA for 8e48aa5
lightning/src/ln/channelmanager.rs
@@ -2951,11 +2951,9 @@ macro_rules! locked_close_channel {
2951
} else {
2952
let in_flight_updates = $peer_state.in_flight_monitor_updates.entry(funding_txo)
2953
.or_insert_with(Vec::new);
2954
- in_flight_updates.iter().position(|upd| upd == &update)
2955
- .unwrap_or_else(|| {
2956
- in_flight_updates.push(update.clone());
2957
- 0
2958
- });
+ if !in_flight_updates.contains(&update) {
+ in_flight_updates.push(update.clone());
+ }
2959
let event = BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
2960
counterparty_node_id,
2961
funding_txo,
0 commit comments