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

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,