Browse Source

lightningd: kill per-peer daemons if they claim a different peer id.

Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
travis-debug
Rusty Russell 5 years ago
parent
commit
24f708ee7b
  1. 5
      lightningd/log_status.c

5
lightningd/log_status.c

@ -16,6 +16,11 @@ bool log_status_msg(struct log *log,
* set it */
if (!node_id)
node_id = suggested_node_id;
/* No per-peer daemon should claim a different peer! */
else if (suggested_node_id
&& !node_id_eq(node_id, suggested_node_id))
return false;
if (level != LOG_IO_IN && level != LOG_IO_OUT) {
call_notifier = (level == LOG_BROKEN ||
level == LOG_UNUSUAL)? true : false;

Loading…
Cancel
Save