diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 96a5df3b464..d805db0f1da 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1721,11 +1721,24 @@ impl 1970").as_secs() - 3600; + } + if peer_lock.their_features.as_ref().unwrap().supports_gossip_queries() && - !peer_lock.sent_gossip_timestamp_filter { + !peer_lock.sent_gossip_timestamp_filter && + (msg.first_timestamp as u64) <= full_sync_threshold + { peer_lock.sent_gossip_timestamp_filter = true; peer_lock.sync_status = InitSyncTracker::ChannelsSyncing(0); }