Skip to content

Add WriteableScore bindings impl for MultiThreadedLockableScore #1788

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

In 56b07e5 we made MultiThreadedLockableScore fully bindings-compatible. However, it did not add a WriteableScore implementation for it. This was an oversight as it is a WriteableScore in Rust and needs to be for use in other parts of the API.

Here we add the required impl in a way that the bindings generator is able to handle it and add conversion utilities.

In 56b07e5 we made
`MultiThreadedLockableScore` fully bindings-compatible. However, it
did not add a `WriteableScore` implementation for it. This was an
oversight as it is a `WriteableScore` in Rust and needs to be for
use in other parts of the API.

Here we add the required impl in a way that the bindings generator
is able to handle it and add conversion utilities.
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Base: 90.71% // Head: 90.73% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (6ec9b53) compared to base (d6321e6).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1788      +/-   ##
==========================================
+ Coverage   90.71%   90.73%   +0.01%     
==========================================
  Files          87       87              
  Lines       47316    47316              
  Branches    47316    47316              
==========================================
+ Hits        42924    42931       +7     
+ Misses       4392     4385       -7     
Impacted Files Coverage Δ
lightning/src/routing/scoring.rs 96.61% <ø> (ø)
lightning/src/chain/onchaintx.rs 94.39% <0.00%> (-0.90%) ⬇️
lightning/src/ln/functional_tests.rs 97.08% <0.00%> (+0.16%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM

@valentinewallace valentinewallace merged commit fbacbc0 into lightningdevkit:main Oct 21, 2022
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.

4 participants