rename process_entries to indicate it's only for tests (#21321)

This commit is contained in:
Justin Starry
2021-11-17 20:53:40 +01:00
committed by GitHub
parent 0f69a14247
commit 66fa062f13
3 changed files with 28 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ use solana_core::banking_stage::{BankingStage, BankingStageStats};
use solana_entry::entry::{next_hash, Entry};
use solana_gossip::cluster_info::ClusterInfo;
use solana_gossip::cluster_info::Node;
use solana_ledger::blockstore_processor::process_entries;
use solana_ledger::blockstore_processor::process_entries_for_tests;
use solana_ledger::genesis_utils::{create_genesis_config, GenesisConfigInfo};
use solana_ledger::{blockstore::Blockstore, get_tmp_ledger_path};
use solana_perf::packet::to_packets_chunked;
@@ -321,7 +321,7 @@ fn simulate_process_entries(
hash: next_hash(&bank.last_blockhash(), 1, &tx_vector),
transactions: tx_vector,
};
process_entries(&bank, vec![entry], randomize_txs, None, None).unwrap();
process_entries_for_tests(&bank, vec![entry], randomize_txs, None, None).unwrap();
}
#[allow(clippy::same_item_push)]