mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +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:
@@ -218,7 +218,7 @@ struct peer *find_route(struct lightningd_state *dstate,
|
||||
|
||||
msatoshi += *fee;
|
||||
log_info(dstate->base_log, "find_route:");
|
||||
log_add_struct(dstate->base_log, "via %s", struct pubkey, &first->id);
|
||||
log_add_struct(dstate->base_log, "via %s", struct pubkey, first->id);
|
||||
for (i = 0; i < best; i++) {
|
||||
log_add_struct(dstate->base_log, " %s",
|
||||
struct pubkey, &(*route)[i]->dst->id);
|
||||
|
||||
Reference in New Issue
Block a user