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:
@ -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"]);
|
||||
|
Reference in New Issue
Block a user