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>
For putting them in the database. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Structure for a net address. We can expand it later to cover exotic address types (Tor?). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>