Skip to content

Commit

Permalink
Remove process_block()
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and solana-grimes committed Mar 8, 2019
1 parent 19488ba commit 7bd0929
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions core/src/blocktree_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
})?;
Expand Down

0 comments on commit 7bd0929

Please sign in to comment.