connectd: make sure we io_log msgs doing to gossipd.

test_gossip_no_empty_announcements relies on this!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-01-11 18:05:48 +10:30
parent 3ccb3da2c5
commit 4584066a1e

View file

@ -350,6 +350,9 @@ static bool handle_message_locally(struct peer *peer, const u8 *msg)
return false;
}
/* gossipd doesn't log IO, so we log it here. */
status_peer_io(LOG_IO_IN, &peer->id, msg);
if (!bitcoin_blkid_eq(&chainparams->genesis_blockhash, &chain_hash)) {
send_warning(peer, "gossip_timestamp_filter for bad chain: %s",
tal_hex(tmpctx, msg));