If you know n is one end of the channel, get index of src == n */
| 185 | |
| 186 | /* If you know n is one end of the channel, get index of src == n */ |
| 187 | static inline int half_chan_idx(const struct node *n, const struct chan *chan) |
| 188 | { |
| 189 | int idx = (chan->nodes[1] == n); |
| 190 | |
| 191 | assert(chan->nodes[0] == n || chan->nodes[1] == n); |
| 192 | return idx; |
| 193 | } |
| 194 | |
| 195 | struct routing_state { |
| 196 | /* TImers base from struct gossipd. */ |
no outgoing calls
no test coverage detected