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

Final backports for 0.0.123 #3055

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

#3054's fix and the fuzz fix from #3046

When we added the additional deust exposure checks in
702196819e6445048b803574fcacef77d5ce8c9c we added several
additional feerate fetches which broke the `full_stack_target`
change-detection test.

This updates the hard-coded test to support the new feerate fetches
and also includes a comment on `FeeEstimator` to indicate that
users really need to be caching feerates as otherwise they'll slow
us down.
When parsing lightning-invoice HRPs we want to read them
char-by-char, tracking at which offset different fields were. Prior
to this commit this was done first by reading char-by-char and then
by indexing using the byte offset which works for ASCII strings but
fails on multi-byte characters.

This commit fixes this issue by simply always walking byte-by-byte
and rejecting multi-byte characters which don't belong in HRPs.
@TheBlueMatt TheBlueMatt added this to the 0.0.123 milestone May 8, 2024
@TheBlueMatt
Copy link
Collaborator Author

Will include the release notes here as well when they land.

I'd uploaded `possiblyrandom` 0.1 to reserve the crate name but
with a dummy library so now we need ot use 0.2 for the release.
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 89.84%. Comparing base (95acb42) to head (a366d53).

Files Patch % Lines
lightning-invoice/src/de.rs 83.33% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           0.0.123    #3055      +/-   ##
===========================================
+ Coverage    89.82%   89.84%   +0.02%     
===========================================
  Files          116      116              
  Lines        96425    96428       +3     
  Branches     96425    96428       +3     
===========================================
+ Hits         86609    86636      +27     
+ Misses        7244     7222      -22     
+ Partials      2572     2570       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheBlueMatt
Copy link
Collaborator Author

Oops, forgot to actually update the Cargo.toml versions, fixed.

@TheBlueMatt TheBlueMatt merged commit 475f736 into lightningdevkit:0.0.123 May 9, 2024
16 checks passed
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.

None yet

4 participants