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

Function htlcs_index_created

lightningd/peer_htlcs.c:3111–3123  ·  view source on GitHub ↗

Fortuntely, dbids start at 1, not 0! */

Source from the content-addressed store, hash-verified

3109
3110/* Fortuntely, dbids start at 1, not 0! */
3111u64 htlcs_index_created(struct lightningd *ld,
3112 u64 htlc_id,
3113 const struct channel *channel,
3114 const struct sha256 *payment_hash,
3115 enum side owner,
3116 u32 expiry,
3117 struct amount_msat amount,
3118 enum htlc_state hstate)
3119{
3120 return htlcs_index_inc(ld, htlc_id, channel, payment_hash, owner,
3121 expiry, amount, hstate,
3122 WAIT_INDEX_CREATED);
3123}
3124
3125u64 htlcs_index_update_status(struct lightningd *ld,
3126 u64 htlc_id,

Callers

nothing calls this directly

Calls 1

htlcs_index_incFunction · 0.85

Tested by

no test coverage detected