~ Helper to append a wireaddr to an array if wireaddr_internal */
| 172 | |
| 173 | /*~ Helper to append a wireaddr to an array if wireaddr_internal */ |
| 174 | static void append_addr(struct wireaddr_internal **wireaddrs, |
| 175 | const struct wireaddr *addr) |
| 176 | { |
| 177 | struct wireaddr_internal addrint; |
| 178 | addrint.itype = ADDR_INTERNAL_WIREADDR; |
| 179 | addrint.u.wireaddr.is_websocket = false; |
| 180 | addrint.u.wireaddr.wireaddr = *addr; |
| 181 | tal_arr_expand(wireaddrs, addrint); |
| 182 | } |
| 183 | |
| 184 | /*~ Nodes (can) advertize one or more addresses in their node_announcement: |
| 185 | * these are lower priority than ones explicitly supplied to the `connect` |
no outgoing calls
no test coverage detected