chore: rm reth-interfaces from consensus (#8461)

This commit is contained in:
Matthias Seitz
2024-05-29 12:48:02 +02:00
committed by GitHub
parent efccfbfc65
commit fe823cba7e
4 changed files with 12 additions and 11 deletions

4
Cargo.lock generated
View File

@ -6641,11 +6641,11 @@ name = "reth-consensus-common"
version = "0.2.0-beta.7"
dependencies = [
"mockall",
"rand 0.8.5",
"reth-consensus",
"reth-interfaces",
"reth-optimism-primitives",
"reth-primitives",
"reth-provider",
"reth-storage-api",
]
[[package]]

View File

@ -14,9 +14,9 @@ workspace = true
# reth
reth-primitives.workspace = true
reth-optimism-primitives.workspace = true
reth-consensus.workspace=true
reth-consensus.workspace = true
[dev-dependencies]
reth-interfaces = { workspace = true, features = ["test-utils"] }
reth-provider = { workspace = true, features = ["test-utils"] }
reth-storage-api.workspace = true
rand.workspace = true
mockall = "0.12"

View File

@ -190,16 +190,15 @@ pub fn validate_header_extradata(header: &Header) -> Result<(), ConsensusError>
mod tests {
use super::*;
use mockall::mock;
use reth_interfaces::{
provider::ProviderResult,
test_utils::generators::{self, Rng},
};
use rand::Rng;
use reth_primitives::{
hex_literal::hex, proofs, Account, Address, BlockBody, BlockHash, BlockHashOrNumber,
BlockNumber, Bytes, ChainSpecBuilder, Signature, Transaction, TransactionSigned, TxEip4844,
Withdrawal, Withdrawals, U256,
};
use reth_provider::{AccountReader, HeaderProvider, WithdrawalsProvider};
use reth_storage_api::{
errors::provider::ProviderResult, AccountReader, HeaderProvider, WithdrawalsProvider,
};
use std::ops::RangeBounds;
mock! {
@ -300,7 +299,7 @@ mod tests {
}
fn mock_blob_tx(nonce: u64, num_blobs: usize) -> TransactionSigned {
let mut rng = generators::rng();
let mut rng = rand::thread_rng();
let request = Transaction::Eip4844(TxEip4844 {
chain_id: 1u64,
nonce,

View File

@ -8,6 +8,8 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
// Re-export used error types.
pub use reth_storage_errors as errors;
mod account;
pub use account::*;