Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
missing truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko committed Feb 11, 2022
1 parent 2262a36 commit 932c46c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/sigverify_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ impl SigVerifyStage {
let mut shrink_time = Measure::start("sigverify_shrink_time");
let num_valid_packets = count_valid_packets(&batches);
if num_packets / num_valid_packets > 4 {
shrink_batches(&mut batches);
let valid = shrink_batches(&mut batches);
batches.truncate(valid);
}
shrink_time.stop();

Expand Down

0 comments on commit 932c46c

Please sign in to comment.