Skip to content

Ignore messages with zlib-compressed fields #925

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

Merged

Conversation

valentinewallace
Copy link
Contributor

Previous to this PR this would cause us to disconnect from CL peers. Seems to work in the sample.

  • tests

@codecov
Copy link

codecov bot commented May 19, 2021

Codecov Report

Merging #925 (9c344b7) into main (5d74cae) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #925      +/-   ##
==========================================
- Coverage   90.45%   90.44%   -0.01%     
==========================================
  Files          59       59              
  Lines       29785    29788       +3     
==========================================
+ Hits        26941    26943       +2     
- Misses       2844     2845       +1     
Impacted Files Coverage Δ
lightning/src/ln/peer_handler.rs 44.06% <0.00%> (-0.11%) ⬇️
lightning/src/ln/msgs.rs 88.22% <85.71%> (-0.07%) ⬇️
lightning/src/ln/functional_tests.rs 96.81% <0.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d74cae...9c344b7. Read the comment docs.

@valentinewallace valentinewallace changed the title Ignore zlib compressed msgs Ignore messages with zlib-compressed fields May 19, 2021
Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some match expressions were missed.

No need to disconnect peers if this error is encountered. It just means
we can't use some of their gossip messages.
if we receive a message with zlib-compressed values.
@valentinewallace valentinewallace force-pushed the ignore-zlib-compressed-msgs branch from d3b308e to 9c344b7 Compare May 20, 2021 15:25
@valentinewallace valentinewallace marked this pull request as ready for review May 20, 2021 15:59
@TheBlueMatt TheBlueMatt merged commit 63a245e into lightningdevkit:main May 20, 2021
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.

3 participants