Skip to content

Commit 5c91966

Browse files
committed
f log errors
1 parent 1bf5a51 commit 5c91966

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3808,13 +3808,16 @@ where
38083808
}
38093809
} else { Ok(()) }
38103810
};
3811-
let _ = handle_error!(self, res, counterparty_id);
38123811
if !found_chan {
38133812
// TODO: If this channel has since closed, we're likely providing a payment
38143813
// preimage update, which we must ensure is durable! We currently don't,
3815-
// however, ensure that, and when we have a strategy therefor we should
3816-
// apply it here.
3814+
// however, ensure that.
3815+
if res.is_err() {
3816+
log_error!(self.logger,
3817+
"Failed to provide ChannelMonitorUpdate to closed channel! This likely lost us a payment preimage!");
3818+
}
38173819
}
3820+
let _ = handle_error!(self, res, counterparty_id);
38183821
},
38193822
}
38203823
}

0 commit comments

Comments
 (0)