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

Function rel_blockheight

onchaind/onchaind.c:894–897  ·  view source on GitHub ↗

If a tx spends @out, and is CSV delayed by @delay, what's the first * block it can get into? */

Source from the content-addressed store, hash-verified

892/* If a tx spends @out, and is CSV delayed by @delay, what's the first
893 * block it can get into? */
894static u32 rel_blockheight(const struct tracked_output *out, u32 delay)
895{
896 return out->tx_blockheight + delay;
897}
898
899/* What is the first block that the proposal can get into? */
900static u32 prop_blockheight(const struct tracked_output *out)

Callers 3

prop_blockheightFunction · 0.85
resolve_htlc_txFunction · 0.85
our_unilateral_to_usFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected