Skip to content

Commit

Permalink
Adds MainnetKind, TestnetKind, and RegtestKind to reserved netw…
Browse files Browse the repository at this point in the history
…ork names
  • Loading branch information
arya2 committed Apr 18, 2024
1 parent cfb0413 commit b3ac9f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zebra-chain/src/parameters/network/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ use crate::{
};

/// Reserved network names that should not be allowed for configured Testnets.
pub const RESERVED_NETWORK_NAMES: [&str; 3] = ["Mainnet", "Testnet", "Regtest"];
pub const RESERVED_NETWORK_NAMES: [&str; 6] = [
"Mainnet",
"Testnet",
"Regtest",
"MainnetKind",
"TestnetKind",
"RegtestKind",
];

/// Maximum length for a configured network name.
pub const MAX_NETWORK_NAME_LENGTH: usize = 30;
Expand Down

0 comments on commit b3ac9f0

Please sign in to comment.