Fix another PR race

This commit is contained in:
Sagar Dhawan 2019-02-28 20:04:30 -08:00
parent cc9191f1b0
commit 434b8a8970
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ 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, bank.id(), bank.last_id(), 0);
let vote =
VoteTransaction::new_vote(keypair, bank.slot(), bank.last_id(), 0);
cluster_info.write().unwrap().push_vote(vote);
}
}