Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2244 +/- ##
==========================================
+ Coverage 84.30% 84.31% +0.01%
==========================================
Files 194 194
Lines 14383 14381 -2
Branches 589 587 -2
==========================================
+ Hits 12125 12126 +1
+ Misses 2258 2255 -3
|
Member
|
LGTM, but how do we make sure that query messages still fit in 65 Kb ? |
While zlib provides good compression results for gossip, it's a dependency that had a few important CVEs in the past. Some implementations are reluctant to import it, so we decided to remove it from the specification in lightning/bolts#981 We stop compressing with zlib and only send uncompressed results, while still supporting receiving compressed data. We will remove support for decompression once our monitoring indicates that we stopped receiving compressed data.
The previous calculation was wrong and could lead to messages bigger than 65kB.
Member
Author
Thanks for spotting that, there was indeed an issue! |
sstone
approved these changes
May 11, 2022
t-bast
added a commit
that referenced
this pull request
Mar 9, 2026
We removed support for sending compressed data when it was removed from the spec (see #2244). We meant to remove support for receiving compressed data as well as a follow-up, but it slipped for a long time! There's no reason to keep supporting it now.
t-bast
added a commit
that referenced
this pull request
Mar 11, 2026
We removed support for sending compressed data when it was removed from the spec (see #2244). We meant to remove support for receiving compressed data as well as a follow-up, but it slipped for a long time! There's no reason to keep supporting it now.
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.
While zlib provides good compression results for gossip, it's a dependency that had a few important CVEs in the past. Some implementations are reluctant to import it, so we decided to remove it from the specification in lightning/bolts#981
We stop compressing with zlib and only send uncompressed results, while still supporting receiving compressed data. We will remove support for decompression once our monitoring indicates that we stopped receiving compressed data.