fix: move checks for automated test mode into global.rs (#2956)

* fix: move checks for test/production mode into one place - global.rs

* chore: rustfmt
This commit is contained in:
Joseph Goulden
2019-07-25 10:08:24 +01:00
committed by Antioch Peverell
parent ecd16d114f
commit 2ae76d39bb
7 changed files with 15 additions and 44 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ where
let mut b =
core::core::Block::new(&prev, vec![], next_header_info.clone().difficulty, reward)
.unwrap();
b.header.timestamp = prev.timestamp + Duration::seconds(160);
b.header.timestamp = prev.timestamp + Duration::seconds(60);
b.header.pow.secondary_scaling = next_header_info.secondary_scaling;
chain.set_txhashset_roots(&mut b).unwrap();
+1 -3
View File
@@ -17,9 +17,7 @@ use grin_core as core;
use grin_util as util;
use std::collections::HashSet;
use std::fs::{self, File, OpenOptions};
use std::iter::FromIterator;
use std::fs::{self, File};
use std::path::{Path, PathBuf};
use std::sync::Arc;