enhance tx gossip test coverage (#6578)

Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
This commit is contained in:
Aditya Pandey
2024-02-16 10:02:21 +05:30
committed by GitHub
parent 3222be6460
commit e24eadf620
4 changed files with 127 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ use crate::{
builder::ETH_REQUEST_CHANNEL_CAPACITY,
error::NetworkError,
eth_requests::EthRequestHandler,
peers::PeersHandle,
protocol::IntoRlpxSubProtocol,
transactions::{TransactionsHandle, TransactionsManager},
NetworkConfig, NetworkConfigBuilder, NetworkEvent, NetworkEvents, NetworkHandle,
@@ -475,6 +476,10 @@ impl<Pool> PeerHandle<Pool> {
self.network.peer_id()
}
pub fn peer_handle(&self) -> &PeersHandle {
self.network.peers_handle()
}
pub fn local_addr(&self) -> SocketAddr {
self.network.local_addr()
}