add _for_tests to setup_bank_and_vote_pubkeys (#19060)
This commit is contained in:
committed by
GitHub
parent
087db70df6
commit
bf16b0517c
@ -6,7 +6,10 @@ use crate::{
|
||||
use solana_sdk::{pubkey::Pubkey, sanitized_transaction::SanitizedTransaction, signature::Signer};
|
||||
use solana_vote_program::vote_transaction;
|
||||
|
||||
pub fn setup_bank_and_vote_pubkeys(num_vote_accounts: usize, stake: u64) -> (Bank, Vec<Pubkey>) {
|
||||
pub fn setup_bank_and_vote_pubkeys_for_tests(
|
||||
num_vote_accounts: usize,
|
||||
stake: u64,
|
||||
) -> (Bank, Vec<Pubkey>) {
|
||||
// Create some voters at genesis
|
||||
let validator_voting_keypairs: Vec<_> = (0..num_vote_accounts)
|
||||
.map(|_| ValidatorVoteKeypairs::new_rand())
|
||||
|
Reference in New Issue
Block a user