Default value for ChainType, when not in grin.toml

This commit is contained in:
Ignotus Peverell
2017-11-15 17:30:48 -05:00
parent 91fdaa8320
commit 97d7a43ccf
4 changed files with 12 additions and 7 deletions
+6
View File
@@ -64,6 +64,12 @@ pub enum ChainTypes {
Mainnet,
}
impl Default for ChainTypes {
fn default() -> ChainTypes {
ChainTypes::UserTesting
}
}
lazy_static!{
/// The mining parameter mode
pub static ref CHAIN_TYPE: RwLock<ChainTypes> =