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:
committed by
Antioch Peverell
parent
ecd16d114f
commit
2ae76d39bb
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user