mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
common/read_peer_msg: remove.
Also means we simplify the handle_gossip_msg() since everyone wants it to use sync_crypto_write(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -90,8 +90,7 @@ static u8 *closing_read_peer_msg(const tal_t *ctx,
|
||||
msg = peer_or_gossip_sync_read(ctx, PEER_FD, GOSSIP_FD,
|
||||
cs, &from_gossipd);
|
||||
if (from_gossipd) {
|
||||
handle_gossip_msg(msg, cs, sync_crypto_write_arg,
|
||||
NULL);
|
||||
handle_gossip_msg(PEER_FD, cs, take(msg));
|
||||
continue;
|
||||
}
|
||||
if (!handle_peer_gossip_or_error(PEER_FD, GOSSIP_FD, cs,
|
||||
|
||||
Reference in New Issue
Block a user