gossipd: use htable, not linked list for peers.

This speeds up nodeid lookups, which is useful for the next simplification.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-30 04:53:17 +09:30
parent 9bc1a020d0
commit 01670d5e5e
13 changed files with 108 additions and 62 deletions

View File

@@ -272,7 +272,6 @@ get_channel(const struct routing_state *rstate,
struct routing_state *new_routing_state(const tal_t *ctx,
const struct node_id *local_id,
struct list_head *peers,
struct timers *timers,
const u32 *dev_gossip_time TAKES,
bool dev_fast_gossip,