mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: use Vec::with_capacity and reserve_exact (#11904)
This commit is contained in:
@ -109,6 +109,7 @@ where
|
||||
|
||||
match self.pool.get_all_blobs_exact(txs.iter().map(|(tx, _)| tx.hash()).collect()) {
|
||||
Ok(blobs) => {
|
||||
actions_to_queue.reserve_exact(txs.len());
|
||||
for ((tx, _), sidecar) in txs.iter().zip(blobs.iter()) {
|
||||
let transaction = BlobTransaction::try_from_signed(tx.clone(), sidecar.clone())
|
||||
.expect("should not fail to convert blob tx if it is already eip4844");
|
||||
|
||||
Reference in New Issue
Block a user