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

Function htlc_out_deadline

lightningd/peer_htlcs.c:2899–2902  ·  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

2897 * `cltv_expiry`: 1 or 2 blocks is reasonable.
2898 */
2899static u32 htlc_out_deadline(const struct htlc_out *hout)
2900{
2901 return hout->cltv_expiry + 1;
2902}
2903
2904/* BOLT #2:
2905 *

Callers 1

htlcs_notify_new_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected