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

Function propose_resolution_at_block

onchaind/onchaind.c:1214–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214static void propose_resolution_at_block(struct tracked_output *out,
1215 const struct bitcoin_tx *tx,
1216 unsigned int block_required,
1217 enum tx_type tx_type)
1218{
1219 u32 depth;
1220
1221 /* Expiry could be in the past! */
1222 if (block_required < out->tx_blockheight)
1223 depth = 0;
1224 else /* Note that out->tx_blockheight is already at depth 1 */
1225 depth = block_required - out->tx_blockheight + 1;
1226 propose_resolution(out, tx, depth, tx_type);
1227}
1228
1229static bool is_valid_sig(const u8 *e)
1230{

Callers 3

resolve_their_htlcFunction · 0.85

Calls 1

propose_resolutionFunction · 0.85

Tested by

no test coverage detected