mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm reth-interfaces from consensus (#8461)
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user