Move the public channel state API into a new module
authorMatt Corallo <git@bluematt.me>
Tue, 4 Jun 2024 01:06:54 +0000 (01:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 4 Jun 2024 14:21:08 +0000 (14:21 +0000)
commit1f616c0058f77e074c429fa7fb8b2f4594cdb9ad
treecf479108c1fde6ddb47e74e0d3a615c4bda8967c
parent73263348ba55c976fa8e17b8c3cf71bc6f117568
Move the public channel state API into a new module

Our "what is the channel's current state" structs have slowly
grown to be rather nontrivial, and now include eight structs with
many fields. Thus, it makes sense to pull them out of
`ln::channelmanager` and into their own module.

This also makes things easier for the C bindings which don't
support `pub use` from a private module.
lightning/src/ln/channel.rs
lightning/src/ln/channel_state.rs [new file with mode: 0644]
lightning/src/ln/channelmanager.rs
lightning/src/ln/mod.rs