Refactor: move simple vote parsing to runtime (#22537)

This commit is contained in:
Justin Starry
2022-01-20 10:39:21 +08:00
committed by GitHub
parent d343713f61
commit 7f20c6149e
16 changed files with 239 additions and 220 deletions

View File

@ -594,6 +594,7 @@ mod tests {
create_genesis_config, create_genesis_config_with_vote_accounts, GenesisConfigInfo,
ValidatorVoteKeypairs,
},
vote_transaction::VoteTransaction,
},
solana_sdk::{
account::ReadableAccount,
@ -611,7 +612,7 @@ mod tests {
transaction::{self, Transaction},
},
solana_stake_program::stake_state,
solana_vote_program::vote_state::{Vote, VoteTransaction},
solana_vote_program::vote_state::Vote,
std::{
sync::{
atomic::{AtomicBool, AtomicU64},

View File

@ -30,6 +30,7 @@ use {
bank::{Bank, TransactionLogInfo},
bank_forks::BankForks,
commitment::{BlockCommitmentCache, CommitmentSlots},
vote_transaction::VoteTransaction,
},
solana_sdk::{
account::{AccountSharedData, ReadableAccount},
@ -40,7 +41,6 @@ use {
transaction,
},
solana_transaction_status::ConfirmedBlock,
solana_vote_program::vote_state::VoteTransaction,
std::{
cell::RefCell,
collections::{HashMap, VecDeque},