Skip to content

Commit

Permalink
Add Groestlcoin (GRS)
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering authored and clarkmoody committed Mar 5, 2020
1 parent 8f77324 commit d7502df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/constants.rs
Expand Up @@ -34,6 +34,10 @@ pub enum Network {
Signet,
/// Bitcoin regtest,
Regtest,
/// Groestlcoin Mainnet
Groestlcoin,
/// Groestlcoin Testnet,
GroestlcoinTestnet,
/// Litecoin mainnet
Litecoin,
/// Litecoin testnet
Expand All @@ -50,6 +54,8 @@ pub fn hrp(network: &Network) -> String {
Network::Bitcoin => "bc".to_string(),
Network::Testnet => "tb".to_string(),
Network::Signet => "sb".to_string(),
Network::Groestlcoin => "grs".to_string(),
Network::GroestlcoinTestnet => "tgrs".to_string(),
Network::Litecoin => "ltc".to_string(),
Network::LitecoinTestnet => "tltc".to_string(),
Network::Vertcoin => "vtc".to_string(),
Expand All @@ -64,6 +70,8 @@ pub fn classify(hrp: &str) -> Option<Network> {
"bc" => Some(Network::Bitcoin),
"tb" => Some(Network::Testnet),
"sb" => Some(Network::Signet),
"grs" => Some(Network::Groestlcoin),
"tgrs" => Some(Network::GroestlcoinTestnet),
"ltc" => Some(Network::Litecoin),
"tltc" => Some(Network::LitecoinTestnet),
"vtc" => Some(Network::Vertcoin),
Expand Down

0 comments on commit d7502df

Please sign in to comment.