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 36a4025 commit f51a1e5Copy full SHA for f51a1e5
lightning/src/ln/channelmanager.rs
@@ -2935,7 +2935,7 @@ where
2935
// payment logic has enough time to fail the HTLC backward before our onchain logic triggers a
2936
// channel closure (see HTLC_FAIL_BACK_BUFFER rationale).
2937
let current_height: u32 = self.best_block.read().unwrap().height();
2938
- if (outgoing_cltv_value as u64) <= current_height as u64 + HTLC_FAIL_BACK_BUFFER as u64 + 1 {
+ if (cltv_expiry as u64) <= current_height as u64 + HTLC_FAIL_BACK_BUFFER as u64 + 1 {
2939
let mut err_data = Vec::with_capacity(12);
2940
err_data.extend_from_slice(&amt_msat.to_be_bytes());
2941
err_data.extend_from_slice(¤t_height.to_be_bytes());
0 commit comments