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

Function in_txout_failures

gossipd/routing.c:272–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272static bool in_txout_failures(struct routing_state *rstate,
273 const struct short_channel_id *scid)
274{
275 if (uintmap_get(&rstate->txout_failures, scid->u64))
276 return true;
277
278 /* If we were going to expire it, we no longer are. */
279 if (uintmap_get(&rstate->txout_failures_old, scid->u64)) {
280 add_to_txout_failures(rstate, scid);
281 return true;
282 }
283 return false;
284}
285
286struct routing_state *new_routing_state(const tal_t *ctx,
287 const struct node_id *local_id,

Callers 3

handle_channel_updateFunction · 0.85
mainFunction · 0.85

Calls 1

add_to_txout_failuresFunction · 0.85

Tested by 1

mainFunction · 0.68