Skip to content

Commit

Permalink
bech32 prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jun 4, 2024
1 parent bf89a0d commit 93c6333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitcoin/src/address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ impl FromStr for Address<NetworkUnchecked> {
// try bech32
let bech32_network = match find_bech32_prefix(s) {
// note that upper or lowercase is allowed but NOT mixed case
"bc" | "BC" => Some(Network::Mainnet),
"tb" | "TB" => Some(Network::Testnet), // this may also be devnet
"df" | "DF" => Some(Network::Mainnet),
"tf" | "TF" => Some(Network::Testnet), // this may also be devnet
"bcrt" | "BCRT" => Some(Network::Regtest),
_ => None,
};
Expand Down

0 comments on commit 93c6333

Please sign in to comment.