use bank.id() where we want 'slot'; bank.slot_height() is not slot (#3014)

This commit is contained in:
Rob Walker 2019-02-28 19:07:47 -08:00 committed by GitHub
parent 07e4f9a611
commit 567bbecca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -86,7 +86,6 @@ impl ReplayStage {
);
let num_ticks = bank.tick_height();
let slot_height = bank.slot_height();
let mut num_ticks_to_next_vote =
leader_schedule_utils::num_ticks_left_in_slot(bank, num_ticks);
@ -124,8 +123,7 @@ impl ReplayStage {
subscriptions.notify_subscribers(&bank);
if let Some(voting_keypair) = voting_keypair {
let keypair = voting_keypair.as_ref();
let vote =
VoteTransaction::new_vote(keypair, slot_height, bank.last_id(), 0);
let vote = VoteTransaction::new_vote(keypair, bank.id(), bank.last_id(), 0);
cluster_info.write().unwrap().push_vote(vote);
}
}