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

Function node_announce_predates_channels

gossipd/routing.c:421–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static bool node_announce_predates_channels(const struct node *node)
422{
423 struct chan_map_iter i;
424 struct chan *c;
425
426 for (c = first_chan(node, &i); c; c = next_chan(node, &i)) {
427 if (!is_chan_public(c))
428 continue;
429
430 if (c->bcast.index < node->bcast.index)
431 return false;
432 }
433 return true;
434}
435
436/* Move this node's announcement to the tail of the gossip_store, to
437 * make everyone send it again. */

Callers 1

remove_chan_from_nodeFunction · 0.85

Calls 3

first_chanFunction · 0.85
next_chanFunction · 0.85
is_chan_publicFunction · 0.85

Tested by

no test coverage detected