More types (#5846)

automerge
This commit is contained in:
sakridge
2019-09-08 11:13:59 -07:00
committed by Grimes
parent 11cec8f24e
commit b35c022629
4 changed files with 28 additions and 75 deletions

View File

@ -5,6 +5,7 @@ use bincode::{deserialize, serialize_into, serialized_size, ErrorKind};
use log::*;
use num_derive::{FromPrimitive, ToPrimitive};
use serde_derive::{Deserialize, Serialize};
use solana_sdk::sysvar::slot_hashes::SlotHash;
use solana_sdk::{
account::{Account, KeyedAccount},
account_utils::State,
@ -231,7 +232,7 @@ impl VoteState {
pub fn process_vote(
&mut self,
vote: &Vote,
slot_hashes: &[(Slot, Hash)],
slot_hashes: &[SlotHash],
epoch: Epoch,
) -> Result<(), VoteError> {
if vote.slots.is_empty() {
@ -407,7 +408,7 @@ pub fn initialize_account(
pub fn process_vote(
vote_account: &mut KeyedAccount,
slot_hashes: &[(Slot, Hash)],
slot_hashes: &[SlotHash],
clock: &Clock,
other_signers: &[KeyedAccount],
vote: &Vote,
@ -487,7 +488,7 @@ mod tests {
vote_pubkey: &Pubkey,
vote_account: &mut Account,
vote: &Vote,
slot_hashes: &[(u64, Hash)],
slot_hashes: &[SlotHash],
epoch: u64,
) -> Result<VoteState, InstructionError> {
process_vote(