| 419 | } |
| 420 | |
| 421 | static 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. */ |
no test coverage detected