Skip to content

Commit

Permalink
chore: update revm and alloy primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Sep 26, 2024
1 parent ece0944 commit f9fcbae
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 26 deletions.
35 changes: 23 additions & 12 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -408,20 +408,20 @@ reth-trie-db = { path = "crates/trie/db" }
reth-trie-parallel = { path = "crates/trie/parallel" }

# revm
revm = { version = "14.0.2", features = [
revm = { version = "14.0.3", features = [
"std",
"secp256k1",
"blst",
], default-features = false }
revm-inspectors = "0.7.6"
revm-primitives = { version = "9.0.2", features = [
revm-primitives = { version = "10.0.0", features = [
"std",
], default-features = false }

# eth
alloy-chains = "0.1.32"
alloy-dyn-abi = "0.8.0"
alloy-primitives = { version = "0.8.3", default-features = false }
alloy-primitives = { version = "0.8.4", default-features = false }
alloy-rlp = "0.3.4"
alloy-sol-types = "0.8.0"
alloy-trie = { version = "0.5", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ reth-prune-types.workspace = true
reth-storage-api.workspace = true
reth-trie = { workspace = true, optional = true }

alloy-primitives.workspace = true

# revm
revm.workspace = true

Expand Down
7 changes: 2 additions & 5 deletions crates/revm/src/batch.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
//! Helper for handling execution of multiple blocks.

use crate::{
precompile::{Address, HashSet},
primitives::alloy_primitives::BlockNumber,
};
use alloc::vec::Vec;
use alloy_primitives::{map::HashSet, Address, BlockNumber};
use reth_execution_errors::{BlockExecutionError, InternalBlockExecutionError};
use reth_primitives::{Receipt, Receipts, Request, Requests};
use reth_prune_types::{PruneMode, PruneModes, PruneSegmentError, MINIMUM_PRUNING_DISTANCE};
Expand Down Expand Up @@ -152,7 +149,7 @@ impl BlockBatchRecord {

if !contract_log_pruner.is_empty() {
let (prev_block, filter) =
self.pruning_address_filter.get_or_insert_with(|| (0, HashSet::new()));
self.pruning_address_filter.get_or_insert_with(|| (0, Default::default()));
for (_, addresses) in contract_log_pruner.range(*prev_block..=block_number) {
filter.extend(addresses.iter().copied());
}
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/state_change.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::precompile::HashMap;
use alloy_primitives::map::HashMap;
use reth_chainspec::{ChainSpec, EthereumHardforks};
use reth_consensus_common::calc;
use reth_primitives::{Address, Block, Withdrawal, Withdrawals, U256};
Expand Down
7 changes: 2 additions & 5 deletions crates/storage/provider/src/test_utils/blocks.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Dummy blocks and data for tests
use crate::{DatabaseProviderRW, ExecutionOutcome};
use alloy_consensus::TxLegacy;
use alloy_primitives::{Log, Parity, Sealable, TxKind};
use alloy_primitives::{map::HashMap, Log, Parity, Sealable, TxKind};
use once_cell::sync::Lazy;
use reth_db::tables;
use reth_db_api::{database::Database, models::StoredBlockBodyIndices};
Expand All @@ -11,10 +11,7 @@ use reth_primitives::{
TransactionSigned, TxType, Withdrawal, Withdrawals, B256, U256,
};
use reth_trie::root::{state_root_unhashed, storage_root_unhashed};
use revm::{
db::BundleState,
primitives::{AccountInfo, HashMap},
};
use revm::{db::BundleState, primitives::AccountInfo};
use std::str::FromStr;

/// Assert genesis block
Expand Down

0 comments on commit f9fcbae

Please sign in to comment.