Skip to content

Commit 784dbed

Browse files
committed
f log errors
1 parent 1a1beb6 commit 784dbed

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
@@ -3811,13 +3811,16 @@ where
38113811
}
38123812
} else { Ok(()) }
38133813
};
3814-
let _ = handle_error!(self, res, counterparty_id);
38153814
if !found_chan {
38163815
// TODO: If this channel has since closed, we're likely providing a payment
38173816
// preimage update, which we must ensure is durable! We currently don't,
3818-
// however, ensure that, and when we have a strategy therefor we should
3819-
// apply it here.
3817+
// however, ensure that.
3818+
if res.is_err() {
3819+
log_error!(self.logger,
3820+
"Failed to provide ChannelMonitorUpdate to closed channel! This likely lost us a payment preimage!");
3821+
}
38203822
}
3823+
let _ = handle_error!(self, res, counterparty_id);
38213824
},
38223825
}
38233826
}

0 commit comments

Comments
 (0)