mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(net): extract NetworkHandle methods for launching node to traits (#9966)
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
#![allow(unreachable_pub)]
|
||||
//! Tests for eth related requests
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use rand::Rng;
|
||||
use reth_eth_wire::HeadersDirection;
|
||||
use reth_network::{
|
||||
test_utils::{NetworkEventStream, Testnet},
|
||||
NetworkEvents,
|
||||
BlockDownloaderProvider, NetworkEvents,
|
||||
};
|
||||
use reth_network_api::{NetworkInfo, Peers};
|
||||
use reth_network_p2p::{
|
||||
@ -17,7 +19,6 @@ use reth_primitives::{
|
||||
U256,
|
||||
};
|
||||
use reth_provider::test_utils::MockEthProvider;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Returns a new [`TransactionSigned`] with some random parameters
|
||||
pub fn rng_transaction(rng: &mut impl rand::RngCore) -> TransactionSigned {
|
||||
|
||||
Reference in New Issue
Block a user