Expose ChannelManager's current config and use it in reload in tests
[rust-lightning] / lightning / src / ln / channelmanager.rs
index d292dd5d6f202bb61299b221dbad556468d87a27..f9e00bc5d035a3f1742f69db9c55e9ee15d84f7c 100644 (file)
@@ -851,6 +851,11 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
                }
        }
 
+       /// Gets the current configuration applied to all new channels,  as
+       pub fn get_current_default_configuration(&self) -> &UserConfig {
+               &self.default_configuration
+       }
+
        /// Creates a new outbound channel to the given remote node and with the given value.
        ///
        /// user_id will be provided back as user_channel_id in FundingGenerationReady events to allow