From a479edcbc58324928f5f153ea54d559cf92f7dfe Mon Sep 17 00:00:00 2001 From: Orbital Date: Thu, 25 Jan 2024 19:59:02 -0600 Subject: [PATCH] lnd: export network verifier for cli --- src/lnd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lnd.rs b/src/lnd.rs index 98b07fcc..e11f5543 100644 --- a/src/lnd.rs +++ b/src/lnd.rs @@ -162,7 +162,7 @@ impl<'a> NodeSigner for LndNodeSigner<'a> { #[derive(Debug)] /// Error when parsing provided configuration options. -pub(crate) enum NetworkParseError { +pub enum NetworkParseError { /// Invalid indicates an invalid network was provided. Invalid(String), } @@ -177,7 +177,7 @@ impl fmt::Display for NetworkParseError { } } -pub(crate) fn string_to_network(network_str: &str) -> Result { +pub fn string_to_network(network_str: &str) -> Result { match network_str { "mainnet" => Ok(Network::Bitcoin), "testnet" => Ok(Network::Testnet),