Skip to content

Commit

Permalink
qs: undo using block votes to fetch batches
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun committed Jan 22, 2025
1 parent 7107777 commit a7a75fa
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions consensus/src/block_preparer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,8 @@ impl BlockPreparer {
});
let start_time = Instant::now();

let (txns, max_txns_from_block_to_execute) = tokio::select! {
// Poll the block qc future until a QC is received. Ignore None outcomes.
Some(qc) = block_qc_fut => {
let block_voters = Some(qc.ledger_info().get_voters_bitvec().clone());
self.payload_manager.get_transactions(block, block_voters).await
},
result = self.payload_manager.get_transactions(block, None) => {
result
}
}?;
let (txns, max_txns_from_block_to_execute) =
self.payload_manager.get_transactions(block, None)?;
let txn_filter = self.txn_filter.clone();
let txn_deduper = self.txn_deduper.clone();
let txn_shuffler = self.txn_shuffler.clone();
Expand Down

0 comments on commit a7a75fa

Please sign in to comment.