mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
common: allow subdaemons to specify the node_id in status messages.
This is ignored in subdaemons which are per-peer, but very useful for multi-peer daemons like connectd and gossipd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -39,7 +39,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
|
||||
if (!msg)
|
||||
return io_close(conn);
|
||||
|
||||
status_peer_io(LOG_IO_IN, msg);
|
||||
status_peer_io(LOG_IO_IN, &peer->id, msg);
|
||||
|
||||
/* BOLT #1:
|
||||
*
|
||||
@@ -168,7 +168,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
|
||||
/* Features so nice, we send it twice! */
|
||||
get_offered_features(tmpctx),
|
||||
get_offered_features(tmpctx));
|
||||
status_peer_io(LOG_IO_OUT, peer->msg);
|
||||
status_peer_io(LOG_IO_OUT, &peer->id, peer->msg);
|
||||
peer->msg = cryptomsg_encrypt_msg(peer, &peer->cs, take(peer->msg));
|
||||
|
||||
next = read_init;
|
||||
|
||||
Reference in New Issue
Block a user