fix(network): make facade members public (#285)
This commit is contained in:
parent
816afcdaa5
commit
bdf6f96a80
1 changed files with 11 additions and 11 deletions
|
|
@ -30,10 +30,10 @@ pub enum Error {
|
||||||
|
|
||||||
/// Client of N2N Ouroboros
|
/// Client of N2N Ouroboros
|
||||||
pub struct PeerClient {
|
pub struct PeerClient {
|
||||||
plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
pub plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
||||||
pub handshake: handshake::Confirmation<handshake::n2n::VersionData>,
|
pub handshake: handshake::Confirmation<handshake::n2n::VersionData>,
|
||||||
chainsync: chainsync::N2NClient,
|
pub chainsync: chainsync::N2NClient,
|
||||||
blockfetch: blockfetch::Client,
|
pub blockfetch: blockfetch::Client,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PeerClient {
|
impl PeerClient {
|
||||||
|
|
@ -87,10 +87,10 @@ impl PeerClient {
|
||||||
|
|
||||||
/// Server of N2N Ouroboros
|
/// Server of N2N Ouroboros
|
||||||
pub struct PeerServer {
|
pub struct PeerServer {
|
||||||
plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
pub plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
||||||
pub version: (VersionNumber, n2n::VersionData),
|
pub version: (VersionNumber, n2n::VersionData),
|
||||||
chainsync: chainsync::N2NServer,
|
pub chainsync: chainsync::N2NServer,
|
||||||
blockfetch: blockfetch::Server,
|
pub blockfetch: blockfetch::Server,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PeerServer {
|
impl PeerServer {
|
||||||
|
|
@ -144,10 +144,10 @@ impl PeerServer {
|
||||||
|
|
||||||
/// Client of N2C Ouroboros
|
/// Client of N2C Ouroboros
|
||||||
pub struct NodeClient {
|
pub struct NodeClient {
|
||||||
plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
pub plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
||||||
pub handshake: handshake::Confirmation<handshake::n2c::VersionData>,
|
pub handshake: handshake::Confirmation<handshake::n2c::VersionData>,
|
||||||
chainsync: chainsync::N2CClient,
|
pub chainsync: chainsync::N2CClient,
|
||||||
statequery: localstate::ClientV10,
|
pub statequery: localstate::ClientV10,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl NodeClient {
|
impl NodeClient {
|
||||||
|
|
@ -244,9 +244,9 @@ impl NodeClient {
|
||||||
|
|
||||||
/// Server of N2C Ouroboros
|
/// Server of N2C Ouroboros
|
||||||
pub struct NodeServer {
|
pub struct NodeServer {
|
||||||
plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
pub plexer_handle: JoinHandle<Result<(), crate::multiplexer::Error>>,
|
||||||
pub version: (VersionNumber, n2c::VersionData),
|
pub version: (VersionNumber, n2c::VersionData),
|
||||||
chainsync: chainsync::N2CServer,
|
pub chainsync: chainsync::N2CServer,
|
||||||
// statequery: localstate::Server,
|
// statequery: localstate::Server,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue