Skip to content

Commit

Permalink
connectd: remove handling of push only gossip
Browse files Browse the repository at this point in the history
This is now handled by gossipd on initial connection to peer.
  • Loading branch information
endothermicdev authored and ShahanaFarooqui committed Apr 13, 2023
1 parent 6a446a9 commit bec8586
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions connectd/gossip_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion connectd/gossip_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion connectd/multiplex.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ static u8 *maybe_from_gossip_store(const tal_t *ctx, struct peer *peer)
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! */
Expand Down

0 comments on commit bec8586

Please sign in to comment.