We can *send* a channel_announce for a channel attached to this node: * we only send once we have a channel_update. */
| 404 | /* We can *send* a channel_announce for a channel attached to this node: |
| 405 | * we only send once we have a channel_update. */ |
| 406 | static bool node_has_broadcastable_channels(struct node *node) |
| 407 | { |
| 408 | struct chan_map_iter i; |
| 409 | struct chan *c; |
| 410 | |
| 411 | for (c = first_chan(node, &i); c; c = next_chan(node, &i)) { |
| 412 | if (!is_chan_public(c)) |
| 413 | continue; |
| 414 | if (is_halfchan_defined(&c->half[0]) |
| 415 | || is_halfchan_defined(&c->half[1])) |
| 416 | return true; |
| 417 | } |
| 418 | return false; |
| 419 | } |
| 420 | |
| 421 | static bool node_announce_predates_channels(const struct node *node) |
| 422 | { |
no test coverage detected