lightningd: store our id as a struct pubkey as well as struct node_id.

We convert it in various places, so do that only once.  Also, the name
"id" is a little curt.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-07-18 10:55:55 +09:30
parent af90fdc0bb
commit c68204a32a
15 changed files with 42 additions and 46 deletions

View File

@@ -1416,7 +1416,7 @@ int main(int argc, char *argv[])
* tal_bytelen() to get the length. */
log_info(ld->log, "--------------------------------------------------");
log_info(ld->log, "Server started with public key %s, alias %s (color #%s) and lightningd %s",
fmt_node_id(tmpctx, &ld->id),
fmt_node_id(tmpctx, &ld->our_nodeid),
json_escape(tmpctx, (const char *)ld->alias)->s,
tal_hex(tmpctx, ld->rgb), version());
ld->state = LD_STATE_RUNNING;