From bec8586dceee1c13329387954da453daebf5a291 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Thu, 23 Mar 2023 16:59:39 -0500 Subject: [PATCH] connectd: remove handling of push only gossip This is now handled by gossipd on initial connection to peer. --- connectd/gossip_store.c | 3 --- connectd/gossip_store.h | 1 - connectd/multiplex.c | 1 - 3 files changed, 5 deletions(-) diff --git a/connectd/gossip_store.c b/connectd/gossip_store.c index 0ebb4f377..931bf1d40 100644 --- a/connectd/gossip_store.c +++ b/connectd/gossip_store.c @@ -111,7 +111,6 @@ static bool public_msg_type(enum peer_wire type) u8 *gossip_store_next(const tal_t *ctx, int *gossip_store_fd, u32 timestamp_min, u32 timestamp_max, - bool push_only, bool with_spam, size_t *off, size_t *end) { @@ -174,8 +173,6 @@ u8 *gossip_store_next(const tal_t *ctx, /* Ignore gossipd internal messages. */ } else if (!public_msg_type(type)) { msg = tal_free(msg); - } else if (!push && push_only) { - msg = tal_free(msg); } else if (!with_spam && ratelimited) { msg = tal_free(msg); } diff --git a/connectd/gossip_store.h b/connectd/gossip_store.h index 21a0eb754..12cd1d6c1 100644 --- a/connectd/gossip_store.h +++ b/connectd/gossip_store.h @@ -13,7 +13,6 @@ u8 *gossip_store_next(const tal_t *ctx, int *gossip_store_fd, u32 timestamp_min, u32 timestamp_max, - bool push_only, bool with_spam, size_t *off, size_t *end); diff --git a/connectd/multiplex.c b/connectd/multiplex.c index dcf65124d..beb4706d8 100644 --- a/connectd/multiplex.c +++ b/connectd/multiplex.c @@ -517,7 +517,6 @@ again: peer->gs.timestamp_min, peer->gs.timestamp_max, false, - false, &peer->gs.off, &peer->daemon->gossip_store_end); /* Don't send back gossip they sent to us! */