rust-lightning/lightning
Jeffrey Czyz 1780ce4e5a
Hide ChannelPhase::Funded behind as_funded method
Exposing ChannelPhase in ChannelManager has led to verbose match
statements, which need to be modified each time a ChannelPhase is added.
Making ChannelPhase an implementation detail of Channel would help avoid
this.

As a step in this direction, introduce ChannelPhase::as_funded and
ChannelPhase::as_funded_mut for use in ChannelManager when a Channel (to
be later renamed FundedChannel) is needed.
2025-01-08 21:29:43 -06:00
..
src Hide ChannelPhase::Funded behind as_funded method 2025-01-08 21:29:43 -06:00
Cargo.toml Drop log-limiting features 2024-12-03 17:26:49 +01:00