]> git.bitcoin.ninja Git - rust-lightning/commit
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:34:32 +0000 (14:34 +0000)
commitf62aa2707b8de2b2be36853b97ab15f6d7bac7ff
tree641aaf15ec972dbff7cd47e1137f097a04c828aa
parent9b523d9de8ccbc6915dbdeaf2a265fbc43bc18c4
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