mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove revm/compat from reth-primitives (#8960)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#![allow(missing_docs, unreachable_pub)]
|
||||
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
|
||||
use proptest::{prelude::*, strategy::ValueTree, test_runner::TestRunner};
|
||||
use reth_primitives::{keccak256, revm::compat::into_reth_acc, Address, B256, U256};
|
||||
use reth_primitives::{keccak256, Address, B256, U256};
|
||||
use reth_trie::{HashedPostState, HashedStorage};
|
||||
use revm::db::{states::BundleBuilder, BundleAccount};
|
||||
use std::collections::HashMap;
|
||||
@ -30,7 +30,7 @@ fn from_bundle_state_seq(state: &HashMap<Address, BundleAccount>) -> HashedPostS
|
||||
|
||||
for (address, account) in state {
|
||||
let hashed_address = keccak256(address);
|
||||
this.accounts.insert(hashed_address, account.info.clone().map(into_reth_acc));
|
||||
this.accounts.insert(hashed_address, account.info.clone().map(Into::into));
|
||||
|
||||
let hashed_storage = HashedStorage::from_iter(
|
||||
account.status.was_destroyed(),
|
||||
|
||||
@ -12,9 +12,7 @@ use reth_db_api::{
|
||||
transaction::DbTx,
|
||||
};
|
||||
use reth_execution_errors::StateRootError;
|
||||
use reth_primitives::{
|
||||
keccak256, revm::compat::into_reth_acc, Account, Address, BlockNumber, B256, U256,
|
||||
};
|
||||
use reth_primitives::{keccak256, Account, Address, BlockNumber, B256, U256};
|
||||
use revm::db::BundleAccount;
|
||||
use std::{
|
||||
collections::{hash_map, HashMap, HashSet},
|
||||
@ -41,7 +39,7 @@ impl HashedPostState {
|
||||
.into_par_iter()
|
||||
.map(|(address, account)| {
|
||||
let hashed_address = keccak256(address);
|
||||
let hashed_account = account.info.clone().map(into_reth_acc);
|
||||
let hashed_account = account.info.clone().map(Into::into);
|
||||
let hashed_storage = HashedStorage::from_iter(
|
||||
account.status.was_destroyed(),
|
||||
account.storage.iter().map(|(key, value)| {
|
||||
|
||||
Reference in New Issue
Block a user