mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
@@ -324,7 +324,7 @@ static char *to_string_(const tal_t *ctx,
|
||||
h->r ? tal_hexstr(ctx, h->r, sizeof(*h->r))
|
||||
: "UNKNOWN",
|
||||
h->src ? to_string(ctx, lr, struct pubkey,
|
||||
&h->src->peer->id)
|
||||
h->src->peer->id)
|
||||
: "local");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user