Reduce slot duration and consecutive leader slots (#4838)

* change consecutive leader slots to 4

* reduce polling frequency for transaction signature confirmation

* adjust wait time for transaction signature confirmation

* fix nominal test

* fix flakiness in wallet pay test
This commit is contained in:
Pankaj Garg
2019-07-01 13:21:00 -07:00
committed by GitHub
parent c1953dca8f
commit 38b44f2496
4 changed files with 47 additions and 17 deletions

View File

@ -4,6 +4,7 @@ extern crate solana;
use assert_cmd::prelude::*;
use solana::blocktree::create_new_tmp_ledger;
use solana::genesis_utils::create_genesis_block;
use std::cmp;
use std::process::Command;
use std::process::Output;
@ -47,10 +48,12 @@ fn nominal() {
assert!(output.status.success());
assert_eq!(count_newlines(&output.stdout), ticks);
// Only print the first 5 items
let output = run_ledger_tool(&["-l", &ledger_path, "-n", "5", "print"]);
// Only print the first N items
let count = cmp::min(genesis_block.ticks_per_slot, 5);
let output = run_ledger_tool(&["-l", &ledger_path, "-n", &count.to_string(), "print"]);
println!("{:?}", output);
assert!(output.status.success());
assert_eq!(count_newlines(&output.stdout), 5);
assert_eq!(count_newlines(&output.stdout), count as usize);
// Skip entries with no hashes
let output = run_ledger_tool(&["-l", &ledger_path, "-h", "1", "print"]);