From 56ce046317778a8bcca6a1162aaed663f006ba79 Mon Sep 17 00:00:00 2001
From: Hai | RISE <150876604+hai-rise@users.noreply.github.com>
Date: Thu, 26 Dec 2024 21:58:56 +0700
Subject: [PATCH] perf: query bytecodes with `&B256` to avoid copying code hash
(#13559)
---
crates/chain-state/src/in_memory.rs | 2 +-
crates/chain-state/src/memory_overlay.rs | 4 ++--
crates/revm/src/database.rs | 6 +++---
crates/revm/src/test_utils.rs | 4 ++--
crates/rpc/rpc-eth-types/src/cache/db.rs | 2 +-
.../storage/provider/src/providers/bundle_state_provider.rs | 4 ++--
crates/storage/provider/src/providers/state/historical.rs | 4 ++--
crates/storage/provider/src/providers/state/latest.rs | 4 ++--
crates/storage/provider/src/providers/state/macros.rs | 2 +-
crates/storage/provider/src/test_utils/mock.rs | 4 ++--
crates/storage/storage-api/src/noop.rs | 2 +-
crates/storage/storage-api/src/state.rs | 4 ++--
crates/transaction-pool/src/validate/eth.rs | 4 ++--
13 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/crates/chain-state/src/in_memory.rs b/crates/chain-state/src/in_memory.rs
index 1e300539e2e4..6780a2421c0c 100644
--- a/crates/chain-state/src/in_memory.rs
+++ b/crates/chain-state/src/in_memory.rs
@@ -999,7 +999,7 @@ mod tests {
Ok(None)
}
- fn bytecode_by_hash(&self, _code_hash: B256) -> ProviderResult