routing: Cleaning up old hostname and port handling

The single string-based hostname and port has been retired in favor of
having multiple `struct ipaddr`s from the `node_announcement`. This
breaks the hostnames and ports from IRC, but I didn't bother to
backport ipaddr for it since it is only used in the legacy daemon.
This commit is contained in:
Christian Decker
2017-05-08 23:41:23 +02:00
committed by Rusty Russell
parent e972b208c7
commit 2d76b066c2
7 changed files with 11 additions and 53 deletions

View File

@@ -46,8 +46,6 @@ struct node {
/* IP/Hostname and port of this node (may be NULL) */
struct ipaddr *addresses;
char *hostname;
int port;
u32 last_timestamp;
@@ -112,9 +110,7 @@ s64 connection_fee(const struct node_connection *c, u64 msatoshi);
/* Updates existing node, or creates a new one as required. */
struct node *add_node(struct routing_state *rstate,
const struct pubkey *pk,
char *hostname,
int port);
const struct pubkey *pk);
/* Updates existing connection, or creates new one as required. */
struct node_connection *add_connection(struct routing_state *rstate,