Skip to content

Commit 1831145

Browse files
committed
f log errors
1 parent aecd5f6 commit 1831145

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
@@ -3823,13 +3823,16 @@ where
38233823
}
38243824
} else { Ok(()) }
38253825
};
3826-
let _ = handle_error!(self, res, counterparty_node_id);
38273826
if !found_chan {
38283827
// TODO: If this channel has since closed, we're likely providing a payment
38293828
// preimage update, which we must ensure is durable! We currently don't,
3830-
// however, ensure that, and when we have a strategy therefor we should
3831-
// apply it here.
3829+
// however, ensure that.
3830+
if res.is_err() {
3831+
log_error!(self.logger,
3832+
"Failed to provide ChannelMonitorUpdate to closed channel! This likely lost us a payment preimage!");
3833+
}
38323834
}
3835+
let _ = handle_error!(self, res, counterparty_node_id);
38333836
},
38343837
}
38353838
}

0 commit comments

Comments
 (0)