move bank.process_entries() to firsties

This commit is contained in:
Rob Walker 2018-08-06 01:12:53 -07:00
parent 9fabd34156
commit 637d403415
1 changed files with 2 additions and 2 deletions

View File

@ -41,6 +41,8 @@ impl ReplicateStage {
}
let entries = reconstruct_entries_from_blobs(blobs.clone())?;
let res = bank.process_entries(entries.clone());
while let Some(blob) = blobs.pop_front() {
blob_recycler.recycle(blob);
}
@ -56,8 +58,6 @@ impl ReplicateStage {
entries.iter().map(|x| x.transactions.len()).sum()
);
let res = bank.process_entries(entries.clone());
// TODO: move this to another stage?
if let Some(ledger_writer) = ledger_writer {
ledger_writer.write_entries(entries)?;