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