Skip to content

Commit

Permalink
lnd: export network verifier for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalturtle committed Feb 2, 2024
1 parent 9f60165 commit b1d8e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand All @@ -177,7 +177,7 @@ impl fmt::Display for NetworkParseError {
}
}

pub(crate) fn string_to_network(network_str: &str) -> Result<Network, NetworkParseError> {
pub fn string_to_network(network_str: &str) -> Result<Network, NetworkParseError> {
match network_str {
"mainnet" => Ok(Network::Bitcoin),
"testnet" => Ok(Network::Testnet),
Expand Down

0 comments on commit b1d8e94

Please sign in to comment.