Skip to content

Various Followups to 2039 and 2674 #2676

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

TheBlueMatt
Copy link
Collaborator

No description provided.

If the user declines to specify a `max_total_routing_fee_msat` in
the new BOLT12 payment methods, rather than defaulting to no limit
on the fee we pay at all, we should default to our "usual default",
ie the one calculated in
`RouteParameters::from_payment_params_and_value`.

We do this here, as well as documenting the behavior on the payment
methods.
@TheBlueMatt TheBlueMatt added this to the 0.0.118 milestone Oct 20, 2023
wpaulino
wpaulino previously approved these changes Oct 20, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (be8797e) 88.80% compared to head (32d2d0f) 89.33%.
Report is 13 commits behind head on main.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2676      +/-   ##
==========================================
+ Coverage   88.80%   89.33%   +0.52%     
==========================================
  Files         112      112              
  Lines       88282    90866    +2584     
  Branches    88282    90866    +2584     
==========================================
+ Hits        78397    81171    +2774     
+ Misses       7636     7455     -181     
+ Partials     2249     2240       -9     
Files Coverage Δ
lightning-background-processor/src/lib.rs 86.26% <100.00%> (-0.13%) ⬇️
lightning/src/chain/chaininterface.rs 97.14% <ø> (ø)
lightning/src/chain/package.rs 87.98% <ø> (+0.33%) ⬆️
lightning/src/ln/outbound_payment.rs 89.14% <100.00%> (ø)
lightning/src/ln/payment_tests.rs 98.18% <100.00%> (-0.02%) ⬇️
lightning/src/ln/peer_handler.rs 58.79% <ø> (-0.06%) ⬇️
lightning/src/onion_message/messenger.rs 78.81% <ø> (ø)
lightning/src/onion_message/packet.rs 58.04% <ø> (ø)
lightning/src/routing/router.rs 94.09% <100.00%> (ø)
lightning/src/offers/invoice_error.rs 78.57% <0.00%> (ø)
... and 1 more

... and 12 files with indirect coverage changes

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

jkczyz
jkczyz previously approved these changes Oct 21, 2023
In 26c1639 we switched to using
`Default::default()` to initialize `()` for scoring parameters in
tests. A number of `()`s slipped back in recently, which we replace
here.
... by passing an owned `String`, rather than taking an `&str` and
`to_owned()`ing it.
... and correct direction which causes force-closure in another
sentence.
Rather than only building with the `c_bindings` flag in certain
crates, we go ahead and test all crates with the flag in CI here.
@TheBlueMatt TheBlueMatt dismissed stale reviews from jkczyz and wpaulino via 88af8a2 October 21, 2023 14:31
@TheBlueMatt TheBlueMatt force-pushed the 2023-10-various-followups branch from 0144138 to 88af8a2 Compare October 21, 2023 14:31
@TheBlueMatt
Copy link
Collaborator Author

Ended up with a few more changes for bindings, so went ahead and addressed @jkczyz's feedback (and squashed those changes down).

Because the bindings changes now require further changes to our
type definitions, avoiding building the `Simple*` type aliases
entirely makes the patchset there simpler.
@TheBlueMatt TheBlueMatt force-pushed the 2023-10-various-followups branch from 88af8a2 to 4443db6 Compare October 21, 2023 16:30
wpaulino
wpaulino previously approved these changes Oct 23, 2023
Because we can't map move semantics in most languages, we also
can't map our current builders. Thus, we have to mark them
no-export.
@TheBlueMatt TheBlueMatt merged commit 3f416bc into lightningdevkit:main Oct 23, 2023
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.

5 participants