connectd: remove handling of push only gossip

This is now handled by gossipd on initial connection to peer.
This commit is contained in:
Alex Myers 2023-03-23 16:59:39 -05:00 committed by ShahanaFarooqui
parent 6a446a94c6
commit bec8586dce
3 changed files with 0 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);

View File

@ -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! */