Skip to content

Commit

Permalink
refactor: minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousGiga committed Mar 13, 2024
1 parent 18d03d3 commit 336b622
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions crates/primitives/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub type Storage = HashMap<
U256,
StorageSlot,
hashbrown::hash_map::DefaultHashBuilder,
// tracking_allocator::TrackingAllocator,
revm_utils::TrackingAllocator,
>;

Expand Down Expand Up @@ -67,7 +66,6 @@ impl Account {
#[cfg(not(feature = "enable_cache_record"))]
storage: HashMap::new(),
#[cfg(feature = "enable_cache_record")]
// storage: HashMap::new_in(tracking_allocator::TrackingAllocator),
storage: HashMap::new_in(revm_utils::TrackingAllocator),
status: AccountStatus::LoadedAsNotExisting,
}
Expand Down Expand Up @@ -145,7 +143,6 @@ impl From<AccountInfo> for Account {
#[cfg(not(feature = "enable_cache_record"))]
storage: HashMap::new(),
#[cfg(feature = "enable_cache_record")]
// storage: HashMap::new_in(tracking_allocator::TrackingAllocator),
storage: HashMap::new_in(revm_utils::TrackingAllocator),
status: AccountStatus::Loaded,
}
Expand Down
6 changes: 2 additions & 4 deletions crates/revm/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ impl<EXT, DB: Database> Evm<'_, EXT, DB> {
#[inline]
pub fn transact(&mut self) -> EVMResult<DB::Error> {
#[cfg(feature = "enable_transact_measure")]
{
revm_utils::metrics::transact_start_record();
revm_utils::metrics::transact_sub_record();
}
revm_utils::metrics::transact_record();

self.handler.validation().env(&self.context.evm.env)?;
let initial_gas_spend = self
.handler
Expand Down

0 comments on commit 336b622

Please sign in to comment.