diff --git a/crates/stages/src/stages/sender_recovery.rs b/crates/stages/src/stages/sender_recovery.rs index 2726e0a341..2c8d30f7c9 100644 --- a/crates/stages/src/stages/sender_recovery.rs +++ b/crates/stages/src/stages/sender_recovery.rs @@ -123,7 +123,7 @@ impl Stage for SenderRecoveryStage { rayon::spawn(move || { let mut rlp_buf = Vec::with_capacity(128); for entry in chunk { - rlp_buf.truncate(0); + rlp_buf.clear(); let _ = tx.send(recover(entry, &mut rlp_buf)); } }); diff --git a/crates/stages/src/stages/tx_lookup.rs b/crates/stages/src/stages/tx_lookup.rs index aa5ea497f6..b804f6e420 100644 --- a/crates/stages/src/stages/tx_lookup.rs +++ b/crates/stages/src/stages/tx_lookup.rs @@ -99,7 +99,7 @@ impl Stage for TransactionLookupStage { rayon::spawn(move || { let mut rlp_buf = Vec::with_capacity(128); for entry in chunk { - rlp_buf.truncate(0); + rlp_buf.clear(); let _ = tx.send(calculate_hash(entry, &mut rlp_buf)); } });