Skip to content

Commit 2e55184

Browse files
committed
f log errors
1 parent 7e345e5 commit 2e55184

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
@@ -3817,13 +3817,16 @@ where
38173817
}
38183818
} else { Ok(()) }
38193819
};
3820-
let _ = handle_error!(self, res, counterparty_node_id);
38213820
if !found_chan {
38223821
// TODO: If this channel has since closed, we're likely providing a payment
38233822
// preimage update, which we must ensure is durable! We currently don't,
3824-
// however, ensure that, and when we have a strategy therefor we should
3825-
// apply it here.
3823+
// however, ensure that.
3824+
if res.is_err() {
3825+
log_error!(self.logger,
3826+
"Failed to provide ChannelMonitorUpdate to closed channel! This likely lost us a payment preimage!");
3827+
}
38263828
}
3829+
let _ = handle_error!(self, res, counterparty_node_id);
38273830
},
38283831
}
38293832
}

0 commit comments

Comments
 (0)