Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do gossip timestamp request so we get sent gossip by peers #9474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f321x
Copy link
Member

@f321x f321x commented Jan 23, 2025

Bolt 7 says in Rebroadcasting

MUST not send gossip it did not generate itself, until it receives gossip_timestamp_filter.

We already had the function request_gossip() which was never called, so we only pulled the gossip by requesting channel ids in query_gossip() but never told the peer to forward gossip to us (by sending gossip_timestamp_filter).
With this PR we also first check if the peer supports gossip queries (has gossip_queries feature bit) and limit the gossip fetching a bit by not requesting the full gossip every time we connect.

limit amount of times we request full gossip from peers

remove timestamp

don't fetch if we are alredy synced

move sleep

add gossip timestamp request so we even get sent gossip

improve gossip query timestamp

add gossip timestamp request so gn get sent gossip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant