mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
peer: keep addresses separately from peers.
This makes more sense eventually: we may know the network addresses of many peers, not just those we're connecting to. So keep a mapping, and update it when we successfully connect outwards. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -251,6 +251,7 @@ static struct lightningd_state *lightningd_state(void)
|
||||
list_head_init(&dstate->bitcoin_req);
|
||||
list_head_init(&dstate->wallet);
|
||||
list_head_init(&dstate->payments);
|
||||
list_head_init(&dstate->addresses);
|
||||
dstate->dev_never_routefail = false;
|
||||
dstate->bitcoin_req_running = false;
|
||||
dstate->nodes = empty_node_map(dstate);
|
||||
|
||||
Reference in New Issue
Block a user