From 84000a20bdee935ccac0d3612ff4afd6854a85d0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 8 Mar 2019 09:15:33 -0800 Subject: [PATCH] Remove process_block() --- core/src/blocktree_processor.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/core/src/blocktree_processor.rs b/core/src/blocktree_processor.rs index fd8b89fdff166a..a8410d137a0c4a 100644 --- a/core/src/blocktree_processor.rs +++ b/core/src/blocktree_processor.rs @@ -86,16 +86,6 @@ pub fn process_entries(bank: &Bank, entries: &[Entry]) -> Result<()> { par_process_entries(bank, entries) } -/// Process an ordered list of entries, populating a circular buffer "tail" -/// as we go. -fn process_block(bank: &Bank, entries: &[Entry]) -> Result<()> { - for entry in entries { - process_entry(bank, entry)?; - } - - Ok(()) -} - #[derive(Debug, PartialEq)] pub struct BankForksInfo { pub bank_slot: u64, @@ -167,7 +157,7 @@ pub fn process_blocktree( return Err(BankError::LedgerVerificationFailed); } - process_block(&bank, &entries).map_err(|err| { + process_entries(&bank, &entries).map_err(|err| { warn!("Failed to process entries for slot {}: {:?}", slot, err); BankError::LedgerVerificationFailed })?;