| 1520 | } |
| 1521 | |
| 1522 | static const struct node_id *get_channel_owner(struct routing_state *rstate, |
| 1523 | const struct short_channel_id *scid, |
| 1524 | int direction) |
| 1525 | { |
| 1526 | struct chan *chan = get_channel(rstate, scid); |
| 1527 | struct unupdated_channel *uc; |
| 1528 | |
| 1529 | if (chan) |
| 1530 | return &chan->nodes[direction]->id; |
| 1531 | |
| 1532 | /* Might be unupdated channel */ |
| 1533 | uc = get_unupdated_channel(rstate, scid); |
| 1534 | if (uc) |
| 1535 | return &uc->id[direction]; |
| 1536 | return NULL; |
| 1537 | } |
| 1538 | |
| 1539 | u8 *handle_channel_update(struct routing_state *rstate, const u8 *update TAKES, |
| 1540 | struct peer *peer, |
no test coverage detected