Skip to content

Final backports for 0.0.123 - #3055

Merged
TheBlueMatt merged 7 commits into
lightningdevkit:0.0.123from
TheBlueMatt:2024-05-123-backports-2
May 9, 2024
Merged

Final backports for 0.0.123#3055
TheBlueMatt merged 7 commits into
lightningdevkit:0.0.123from
TheBlueMatt:2024-05-123-backports-2

Conversation

@TheBlueMatt

Copy link
Copy Markdown
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.
@TheBlueMattTheBlueMatt added this to the 0.0.123 milestone May 8, 2024
@TheBlueMatt

Copy link
Copy Markdown
CollaboratorAuthor

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.
@TheBlueMatt
TheBlueMattforce-pushed the 2024-05-123-backports-2 branch from ff85414 to fba4eefCompareMay 8, 2024 20:09
@codecov-commenter

codecov-commenter commented May 8, 2024

Copy link
Copy Markdown

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).

FilesPatch %Lines
lightning-invoice/src/de.rs83.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
Copy Markdown
CollaboratorAuthor

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

@TheBlueMatt
TheBlueMatt merged commit 475f736 into lightningdevkit:0.0.123May 9, 2024
Sign up for freeto 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.

4 participants

@TheBlueMatt@codecov-commenter@jkczyz@valentinewallace