Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Redidacove committed Sep 3, 2024
1 parent 06b882e commit 067e697
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
20 changes: 18 additions & 2 deletions crates/optimism/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,29 @@ workspace = true

[dependencies]
# reth
reth-consensus-common.workspace = true
reth-blockchain-tree.workspace = true
reth-blockchain-tree-api.workspace = true
reth-chainspec.workspace = true
reth-primitives.workspace = true
reth-consensus-common.workspace = true
reth-consensus.workspace = true
reth-db.workspace = true
reth-revm.workspace = true
reth-provider.workspace = true
reth-trie = { workspace = true, features = ["metrics"] }
reth-primitives.workspace = true
reth-trie-common.workspace = true
reth-prune-types.workspace = true

tracing.workspace = true

[dev-dependencies]
alloy-genesis.workspace = true
reth-chainspec.workspace = true
reth-revm.workspace = true
reth-primitives = { workspace = true, features = ["test-utils"] }
reth-provider = { workspace = true, features = ["test-utils"] }
reth-consensus = { workspace = true, features = ["test-utils"] }


[features]
optimism = ["reth-primitives/optimism"]
31 changes: 27 additions & 4 deletions crates/optimism/consensus/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,33 @@ pub(crate) fn calculate_receipt_root_optimism(

#[cfg(test)]
mod tests {
use super::*;
use alloy_primitives::{b256, Address, LogData};
use reth_chainspec::SEPOLIA;
use reth_primitives::{bloom, hex_literal::hex, Log, TxType};
use std::{
collections::{btree_map::Entry, BTreeMap, HashSet, HashMap},
sync::Arc,
};
use reth_blockchain_tree::{
BlockchainTreeConfig, TreeExternals
};
use reth_blockchain_tree_api::{
BlockAttachment, BlockStatus, BlockValidationKind, CanonicalOutcome, InsertPayloadOk,
};
use reth_db::tables;
use alloy_genesis::{Genesis, GenesisAccount};
use reth_consensus::test_utils::TestConsensus;
use reth_evm_ethereum::execute::EthExecutorProvider;
use alloy_primitives::{U256, b256, Address, LogData};
use reth_chainspec::{ChainSpecBuilder, SEPOLIA, MAINNET};
use reth_primitives::{
constants::{EIP1559_INITIAL_BASE_FEE, EMPTY_ROOT_HASH},
keccak256,
proofs::{calculate_receipt_root, calculate_transaction_root},
revm_primitives::AccountInfo,
Account, Address, Header, Receipt, SealedBlockWithSenders, Signature, Transaction, TransactionSigned,
TransactionSignedEcRecovered, TxEip1559, Withdrawals, B256, SealedBlock
};
use reth_provider::test_utils::create_test_provider_factory_with_chain_spec;
use reth_trie::{root::state_root_unhashed};
use reth_prune_types::PruneModes;

#[test]
fn consecutive_reorgs() {
Expand Down

0 comments on commit 067e697

Please sign in to comment.