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
+2 -4
View File
@@ -57,8 +57,7 @@ fn start_from_config_file(mut global_config: GlobalConfig) {
.unwrap()
.server
.clone()
.chain_type
.unwrap(),
.chain_type,
);
grin::Server::start(global_config.members.as_mut().unwrap().server.clone()).unwrap();
@@ -102,8 +101,7 @@ fn main() {
.unwrap()
.server
.clone()
.chain_type
.unwrap(),
.chain_type,
);
} else {
init_logger(Some(LoggingConfig::default()));