Repository navigation
Conversation
When handle_query_short_channel_ids receives a chain_hash we don't follow, it sends reply_short_channel_ids_end with full_information = 0, as BOLT 7 requires, but then falls through and handles the query as if it were for our chain. Any short_channel_ids found in our gossmap get their gossip sent, and the reply ends with a second reply_short_channel_ids_end, with our chain_hash and full_information = 1. Return after the first reply, as handle_query_channel_range already does for an unknown chain. Fixes: ElementsProject#9803 Changelog-Fixed: connectd: `query_short_channel_ids` for an unknown chain no longer also sends gossip from our chain and a second `reply_short_channel_ids_end`. Signed-off-by: Devansh Vashisht <devansh.vashisht.ug24@nsut.ac.in>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
handle_query_short_channel_idsreceives achain_hashwe don't follow, it sendsreply_short_channel_ids_endwithfull_information = 0, as BOLT 7 requires, but then falls through and handles the query as if it were for our chain. Anyshort_channel_ids found in our gossmap get their gossip sent, and the reply ends with a secondreply_short_channel_ids_end, with ourchain_hashandfull_information = 1.Return after the first reply, as
handle_query_channel_rangealready does for an unknown chain.test_query_short_channel_idnow also queries a known channel with an unknownchain_hashand expects a singlereply_short_channel_ids_endwithfull_information = 0. Without the fix it gets 11 messages: the first reply, 9 gossip messages, and the second reply.Fixes #9803.
Checklist
Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:
tools/lightning-downgrade