mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
peer: make id a pointer, NULL until we know peer's ID.
Much better than undefined, and testing for NULL is better than testing for STATE_INIT. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -137,7 +137,7 @@ struct peer {
|
||||
struct netaddr addr;
|
||||
|
||||
/* Their ID. */
|
||||
struct pubkey id;
|
||||
struct pubkey *id;
|
||||
|
||||
/* Current received packet. */
|
||||
Pkt *inpkt;
|
||||
|
||||
Reference in New Issue
Block a user