mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Simulnet test fix (#1222)
* remove lower time bound * simulnet test issue * re-introduce lower bound * re-introduce lower bound
This commit is contained in:
parent
f8cd5cf2a4
commit
721a22b1c4
2 changed files with 2 additions and 3 deletions
|
@ -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)| {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue