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 e7d7db7 commit e48025cCopy full SHA for e48025c
lightning/src/ln/channelmanager.rs
@@ -8324,7 +8324,8 @@ where
8324
let peer_state = &mut *peer_state_lock;
8325
for (_, chan) in peer_state.channel_by_id.iter() {
8326
if let Some(funding_txo) = chan.context.get_funding_txo() {
8327
- let monitor = args.channel_monitors.get(&funding_txo).unwrap();
+ let monitor = args.channel_monitors.get(&funding_txo)
8328
+ .expect("We already checked for monitor presence when loading channels");
8329
let mut max_in_flight_update_id = monitor.get_latest_update_id();
8330
if let Some(in_flight_upds) = &mut in_flight_monitor_updates {
8331
if let Some(mut chan_in_flight_upds) = in_flight_upds.remove(&(*counterparty_id, funding_txo)) {
0 commit comments