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

Function in_txout_failures

gossipd/txout_failures.c:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool in_txout_failures(struct txout_failures *txf,
48 const struct short_channel_id scid)
49{
50 if (uintmap_get(&txf->failures[RECENT], scid.u64))
51 return true;
52
53 /* If we were going to expire it, we no longer are. */
54 if (uintmap_get(&txf->failures[AGED], scid.u64)) {
55 txout_failures_add(txf, scid);
56 return true;
57 }
58 return false;
59}

Callers 4

process_channel_updateFunction · 0.85
mainFunction · 0.85

Calls 1

txout_failures_addFunction · 0.85

Tested by 1

mainFunction · 0.68