Adds `MainnetKind`, `TestnetKind`, and `RegtestKind` to reserved network names

This commit is contained in:
Arya 2024-04-17 22:57:04 -04:00
parent 08f0838079
commit 0e97b53937
1 changed files with 8 additions and 1 deletions

View File

@ -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;