-
Notifications
You must be signed in to change notification settings - Fork 407
Assorted 0.0.116 Bindings updates #2430
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
Assorted 0.0.116 Bindings updates #2430
Conversation
The C bindings generation currently has issues looking through a generic associated type. While this should be fixed in the bindings generator, its easy to fix here for now and we can revisit it later.
297aa01
to
7ed4810
Compare
7ed4810
to
eca9c6c
Compare
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2430 +/- ##
==========================================
+ Coverage 90.28% 90.32% +0.04%
==========================================
Files 106 106
Lines 55664 55977 +313
Branches 55664 55977 +313
==========================================
+ Hits 50254 50564 +310
- Misses 5410 5413 +3
☔ View full report in Codecov by Sentry. |
LGTM but there's one more build error in |
eca9c6c
to
440f6f2
Compare
Oops, sorry, fixed fuzz build. |
In bindings we can't practically pass a mutable transaction, and instead need to pass an owned transaction and have the sign method return a signed copy. We do this here for all build modes as the API is roughly equivalent also to Rust users.
We already hold them in a vec, so there's no cost to passing them by ownership vs making it a slice. Further, this helps bindings as we can't represent slices to non-pointers in a sensible way.
Given we build `InFlightHtlcs` per route-fetch call, there's no reason to pass them out by reference rather than simply giving the user the full object. This also allows them to tweak the in-flight set before fetching a route.
This code was always effectively dead - we have a special `MultiThreadedLockableScore` type which wraps a `Mutex` for bindings users, so there's no need to implement any bindings-specific scoring logic for them.
440f6f2
to
35dda4e
Compare
Probably a few more to come, but here's the first batch.