From b3b23f017eb7352b32f5f8093530d1d16c8acb32 Mon Sep 17 00:00:00 2001 From: Carl Date: Tue, 18 Dec 2018 23:49:42 -0800 Subject: [PATCH] fix broken test --- src/thin_client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thin_client.rs b/src/thin_client.rs index caf0ab0395bc28..594814cbd41bc6 100644 --- a/src/thin_client.rs +++ b/src/thin_client.rs @@ -450,6 +450,7 @@ mod tests { let mut bank = Bank::new(&alice); let bob_pubkey = Keypair::new().pubkey(); let ledger_path = create_tmp_ledger_with_mint("thin_client", &alice); + let entry_height = alice.create_entries().len() as u64; let leader_scheduler = Arc::new(RwLock::new(LeaderScheduler::from_bootstrap_leader( leader_data.id, @@ -461,7 +462,7 @@ mod tests { leader_keypair, vote_account_keypair, bank, - 0, + entry_height, &last_id, leader, None,