Avoid cloning Vec<Entry> when calling entries_to_test_shreds() (#22093)

This commit is contained in:
Yueh-Hsuan Chiang
2021-12-24 12:32:43 -08:00
committed by GitHub
parent 2ab4f34c02
commit b89cd8cd1a
9 changed files with 42 additions and 48 deletions

View File

@@ -302,7 +302,7 @@ pub mod test {
blockhashes.insert(slot, entries.last().unwrap().hash);
let mut shreds = solana_ledger::blockstore::entries_to_test_shreds(
entries.clone(),
&entries,
slot,
parent.unwrap_or(slot),
is_slot_complete,