Skip to content

Move CounterpartyForwardingInfo from channel to channelmanager #1070

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

CounterpartyForwardingInfo is public (previously exposed with a
pub use), and used inside of ChannelCounterparty in
channelmanager.rs. However, it is defined in channel.rs, away from
where it is used.

This would be fine, except that the bindings generator is somewhat
confused by this - it doesn't currently support interpreting
pub use as a struct to expose, instead ignoring it.

Fixes lightningdevkit/ldk-garbagecollected#44

@TheBlueMatt TheBlueMatt added this to the 0.0.101 milestone Sep 6, 2021
@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #1070 (3f9efe7) into main (de9fba8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1070   +/-   ##
=======================================
  Coverage   90.83%   90.83%           
=======================================
  Files          65       65           
  Lines       33281    33281           
=======================================
  Hits        30232    30232           
  Misses       3049     3049           
Impacted Files Coverage Δ
lightning/src/ln/channel.rs 88.65% <ø> (-0.02%) ⬇️
lightning/src/ln/channelmanager.rs 85.86% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de9fba8...3f9efe7. Read the comment docs.

CounterpartyForwardingInfo is public (previously exposed with a
`pub use`), and used inside of ChannelCounterparty in
channelmanager.rs. However, it is defined in channel.rs, away from
where it is used.

This would be fine, except that the bindings generator is somewhat
confused by this - it doesn't currently support interpreting
`pub use` as a struct to expose, instead ignoring it.

Fixes lightningdevkit/ldk-garbagecollected#44
@TheBlueMatt TheBlueMatt force-pushed the 2021-09-fix-bindings-ignore branch from c4162ca to 3f9efe7 Compare September 13, 2021 17:32
@TheBlueMatt
Copy link
Collaborator Author

Rebased.

@TheBlueMatt TheBlueMatt merged commit 088daf7 into lightningdevkit:main Sep 17, 2021
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.

ChannelCounterparty not instantiable
3 participants