Tuck away PoH duration

This commit is contained in:
Greg Fitzgerald 2018-08-09 16:02:09 -06:00
parent 5216a723b1
commit c75d4abb0b
3 changed files with 4 additions and 8 deletions

View File

@ -290,7 +290,6 @@ mod tests {
bank, bank,
0, 0,
&[], &[],
Some(Duration::from_millis(30)),
leader, leader,
exit.clone(), exit.clone(),
&ledger_path, &ledger_path,

View File

@ -14,7 +14,6 @@ use std::net::SocketAddr;
use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
use std::thread::{JoinHandle, Result}; use std::thread::{JoinHandle, Result};
use std::time::Duration;
use tpu::Tpu; use tpu::Tpu;
use tvu::Tvu; use tvu::Tvu;
use untrusted::Input; use untrusted::Input;
@ -107,8 +106,6 @@ impl Fullnode {
bank, bank,
entry_height, entry_height,
&ledger_tail, &ledger_tail,
//Some(Duration::from_millis(1000)),
None,
node, node,
exit.clone(), exit.clone(),
ledger_path, ledger_path,
@ -185,12 +182,15 @@ impl Fullnode {
bank: Bank, bank: Bank,
entry_height: u64, entry_height: u64,
ledger_tail: &[Entry], ledger_tail: &[Entry],
tick_duration: Option<Duration>,
node: TestNode, node: TestNode,
exit: Arc<AtomicBool>, exit: Arc<AtomicBool>,
ledger_path: &str, ledger_path: &str,
sigverify_disabled: bool, sigverify_disabled: bool,
) -> Self { ) -> Self {
let tick_duration = None;
// TODO: To light up PoH, uncomment the following line:
//let tick_duration = Some(Duration::from_millis(1000));
let bank = Arc::new(bank); let bank = Arc::new(bank);
let mut thread_hdls = vec![]; let mut thread_hdls = vec![];
let rpu = Rpu::new( let rpu = Rpu::new(

View File

@ -361,7 +361,6 @@ mod tests {
bank, bank,
0, 0,
&[], &[],
Some(Duration::from_millis(30)),
leader, leader,
exit.clone(), exit.clone(),
&ledger_path, &ledger_path,
@ -409,7 +408,6 @@ mod tests {
bank, bank,
0, 0,
&[], &[],
Some(Duration::from_millis(30)),
leader, leader,
exit.clone(), exit.clone(),
&ledger_path, &ledger_path,
@ -469,7 +467,6 @@ mod tests {
bank, bank,
0, 0,
&[], &[],
Some(Duration::from_millis(30)),
leader, leader,
exit.clone(), exit.clone(),
&ledger_path, &ledger_path,