Expose chan type in `Event::OpenChannelRequest` & `ChannelDetails`
[rust-lightning] / lightning / src / ln / channel.rs
index 71e0ea121a929f2533c3af47714a50264e83b962..e1f292b76736b987c0e375d863f594c3beaf40d4 100644 (file)
@@ -4232,6 +4232,11 @@ impl<Signer: Sign> Channel<Signer> {
                self.user_id
        }
 
+       /// Gets the channel's type
+       pub fn get_channel_type(&self) -> &ChannelTypeFeatures {
+               &self.channel_type
+       }
+
        /// Guaranteed to be Some after both FundingLocked messages have been exchanged (and, thus,
        /// is_usable() returns true).
        /// Allowed in any state (including after shutdown)