File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1821,9 +1821,10 @@ impl ChannelMonitor {
1821
1821
// least CLTV_CLAIM_BUFFER blocks prior to the inbound HTLC.
1822
1822
// aka outbound_cltv + HTLC_FAIL_TIMEOUT_BLOCKS == height - CLTV_CLAIM_BUFFER
1823
1823
// inbound_cltv == height + CLTV_CLAIM_BUFFER
1824
- // outbound_cltv + HTLC_FAIL_TIMEOUT_BLOCKS + CLTV_CLAIM_BUFER <= inbound_cltv - CLTV_CLAIM_BUFFER
1825
- // HTLC_FAIL_TIMEOUT_BLOCKS + 2*CLTV_CLAIM_BUFER <= inbound_cltv - outbound_cltv
1826
- // HTLC_FAIL_TIMEOUT_BLOCKS + 2*CLTV_CLAIM_BUFER <= CLTV_EXPIRY_DELTA
1824
+ // outbound_cltv + HTLC_FAIL_TIMEOUT_BLOCKS + CLTV_CLAIM_BUFFER <= inbound_cltv - CLTV_CLAIM_BUFFER
1825
+ // HTLC_FAIL_TIMEOUT_BLOCKS + 2*CLTV_CLAIM_BUFFER <= inbound_cltv - outbound_cltv
1826
+ // CLTV_EXPIRY_DELTA <= inbound_cltv - outbound_cltv (by check in ChannelManager::decode_update_add_htlc_onion)
1827
+ // HTLC_FAIL_TIMEOUT_BLOCKS + 2*CLTV_CLAIM_BUFFER <= CLTV_EXPIRY_DELTA
1827
1828
let htlc_outbound = $local_tx == htlc. offered;
1828
1829
if ( htlc_outbound && htlc. cltv_expiry + HTLC_FAIL_TIMEOUT_BLOCKS <= height) ||
1829
1830
( !htlc_outbound && htlc. cltv_expiry <= height + CLTV_CLAIM_BUFFER && self . payment_preimages. contains_key( & htlc. payment_hash) ) {
You can’t perform that action at this time.
0 commit comments