Make a new protocol module with message submodule.

This allows us to organize all of the Bitcoin-Zcash specific parts of
the protocol into a subtree.
This commit is contained in:
Henry de Valence 2019-09-23 19:43:43 -07:00
parent c8a3d47b56
commit 0b1acc50c3
4 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@ extern crate failure;
#[macro_use]
extern crate tracing;
pub mod message;
pub mod protocol;
pub mod types;
// XXX make this private once connect is removed

View File

@ -0,0 +1,5 @@
//! Zcash network protocol handling.
pub mod message;
pub mod codec;

View File

@ -46,7 +46,7 @@ impl ConnectCmd {
use tokio::net::TcpStream;
use zebra_chain::types::BlockHeight;
use zebra_network::{constants, message::*, types::*};
use zebra_network::{constants, protocol::message::*, types::*};
info!("connecting");