Recover from rebase

This commit is contained in:
Michael Vines
2019-02-26 21:30:54 -08:00
parent 9539154a4a
commit 9e2a7921c8
4 changed files with 4 additions and 12 deletions

View File

@ -1617,7 +1617,7 @@ fn test_fullnode_rotate(
let mut leader_slot_height_of_next_rotation = 1;
if fullnode_config.leader_scheduler_config.ticks_per_slot == 1 {
if ticks_per_slot == 1 {
// Add another tick to the ledger if the cluster has been configured for 1 ticks_per_slot.
// The "pseudo-tick" entry0 currently added by bank::process_ledger cannot be rotated on
// since it has no last id (so at 1 ticks_per_slot rotation must start at a tick_height of

View File

@ -238,8 +238,7 @@ fn test_replicator_startup_leader_hang() {
let leader_ledger_path = "replicator_test_leader_ledger";
let (genesis_block, _mint_keypair) = GenesisBlock::new(10_000);
let (replicator_ledger_path, _tick_height, _last_entry_height, _last_id, _last_entry_id) =
create_tmp_sample_blocktree("replicator_test_replicator_ledger", &genesis_block, 0);
let (replicator_ledger_path, _last_id) = create_new_tmp_ledger!(&genesis_block);
{
let replicator_keypair = Keypair::new();
@ -275,7 +274,7 @@ fn test_replicator_startup_ledger_hang() {
let (genesis_block, _mint_keypair) =
GenesisBlock::new_with_leader(100, leader_keypair.pubkey(), 42);
let (replicator_test_replicator_ledger, _last_id) = create_new_tmp_ledger!(&genesis_block);
let (replicator_ledger_path, _last_id) = create_new_tmp_ledger!(&genesis_block);
info!("starting leader node");
let leader_node = Node::new_localhost_with_pubkey(leader_keypair.pubkey());