Simulnet test fix (#1222)

* remove lower time bound

* simulnet test issue

* re-introduce lower bound

* re-introduce lower bound
This commit is contained in:
Yeastplume 2018-07-06 11:42:54 +01:00 committed by GitHub
parent f8cd5cf2a4
commit 721a22b1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@ extern crate grin_core as core;
extern crate time;
use core::consensus::{next_difficulty, valid_header_version, TargetError,
DIFFICULTY_ADJUST_WINDOW, MEDIAN_TIME_WINDOW, LOWER_TIME_BOUND,
DIFFICULTY_ADJUST_WINDOW, MEDIAN_TIME_WINDOW,
UPPER_TIME_BOUND, BLOCK_TIME_WINDOW, DAMP_FACTOR, MEDIAN_TIME_INDEX};
use core::core::target::Difficulty;
use std::fmt::{self, Display};
@ -268,7 +268,6 @@ fn print_chain_sim(
println!("DIFFICULTY_ADJUST_WINDOW: {}", DIFFICULTY_ADJUST_WINDOW);
println!("BLOCK_TIME_WINDOW: {}", BLOCK_TIME_WINDOW);
println!("MEDIAN_TIME_WINDOW: {}", MEDIAN_TIME_WINDOW);
println!("LOWER_TIME_BOUND: {}", LOWER_TIME_BOUND);
println!("UPPER_TIME_BOUND: {}", UPPER_TIME_BOUND);
println!("DAMP_FACTOR: {}", DAMP_FACTOR);
chain_sim.iter().enumerate().for_each(|(i, b)| {

View file

@ -220,7 +220,7 @@ impl LocalServerContainer {
"starting test Miner on port {}",
self.config.p2p_server_port
);
s.start_test_miner(Some(self.config.coinbase_wallet_address.clone()));
s.start_test_miner(wallet_url);
}
for p in &mut self.peer_list {