mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
connectd: remove handling of push only gossip
This is now handled by gossipd on initial connection to peer.
This commit is contained in:
parent
6a446a94c6
commit
bec8586dce
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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! */
|
||||
|
Loading…
Reference in New Issue
Block a user