Move CounterpartyForwardingInfo from channel to channelmanager 2021-09-fix-bindings-ignore
authorMatt Corallo <git@bluematt.me>
Mon, 6 Sep 2021 03:25:27 +0000 (03:25 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 Sep 2021 17:31:59 +0000 (17:31 +0000)
commit3f9efe717b286acb4df95c278b45df086bee9ddd
treece9346ccd64f60d292b2611cfe8763bd0f461d40
parentde9fba82f233fa185e54e833c7faf9c6a0f2b670
Move CounterpartyForwardingInfo from channel to channelmanager

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 https://github.com/lightningdevkit/ldk-garbagecollected/issues/44
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs