lightningd: avoid keeping multiple copies of nodeid.

Simple refcount FTW.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-11-18 10:57:17 +10:30
parent 4fc498f901
commit 0c6d8996fc
2 changed files with 60 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ struct log_entry {
struct timeabs time;
enum log_level level;
unsigned int skipped;
struct node_id *node_id;
struct node_id_cache *nc;
const char *prefix;
char *log;
/* Iff LOG_IO */