Add BlockstoreProcessorResult

This commit is contained in:
Michael Vines
2020-01-23 16:09:32 -07:00
parent 79f3194d0c
commit d62ed4f6b3
2 changed files with 17 additions and 10 deletions

View File

@@ -1,9 +1,8 @@
use crate::{
bank_forks::{BankForks, SnapshotConfig},
bank_forks::SnapshotConfig,
blockstore::Blockstore,
blockstore_processor::{self, BankForksInfo, BlockstoreProcessorError, ProcessOptions},
blockstore_processor::{self, BlockstoreProcessorResult, ProcessOptions},
entry::VerifyRecyclers,
leader_schedule_cache::LeaderScheduleCache,
snapshot_utils,
};
use log::*;
@@ -16,7 +15,7 @@ pub fn load(
account_paths: Vec<PathBuf>,
snapshot_config: Option<&SnapshotConfig>,
process_options: ProcessOptions,
) -> Result<(BankForks, Vec<BankForksInfo>, LeaderScheduleCache), BlockstoreProcessorError> {
) -> BlockstoreProcessorResult {
if let Some(snapshot_config) = snapshot_config.as_ref() {
info!(
"Initializing snapshot path: {:?}",