mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
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:
committed by
Rusty Russell
parent
e972b208c7
commit
2d76b066c2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user