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 0321d79 commit 3006844Copy full SHA for 3006844
lightningd/peer_htlcs.c
@@ -199,7 +199,7 @@ static bool check_amount(struct htlc_in *hin,
199
static bool check_cltv(struct htlc_in *hin,
200
u32 cltv_expiry, u32 outgoing_cltv_value, u32 delta)
201
{
202
- if (cltv_expiry - delta >= outgoing_cltv_value)
+ if (delta < cltv_expiry && cltv_expiry - delta >= outgoing_cltv_value)
203
return true;
204
log_debug(hin->key.channel->log, "HTLC %"PRIu64" incorrect CLTV:"
205
" %u in, %u out, delta reqd %u",
0 commit comments