MCPcopy Create free account
hub / github.com/ElementsProject/lightning / htlc_out_deadline

Function htlc_out_deadline

lightningd/peer_htlcs.c:2565–2568  ·  view source on GitHub ↗

BOLT #2: * * 2. the deadline for offered HTLCs: the deadline after which the channel has * to be failed and timed out on-chain. This is `G` blocks after the HTLC's * `cltv_expiry`: 1 or 2 blocks is reasonable. */

Source from the content-addressed store, hash-verified

2563 * `cltv_expiry`: 1 or 2 blocks is reasonable.
2564 */
2565static u32 htlc_out_deadline(const struct htlc_out *hout)
2566{
2567 return hout->cltv_expiry + 1;
2568}
2569
2570/* BOLT #2:
2571 *

Callers 1

htlcs_notify_new_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected