diff options
Diffstat (limited to 'src/proto.rs')
-rw-r--r-- | src/proto.rs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/proto.rs b/src/proto.rs deleted file mode 100644 index d51aa36b..00000000 --- a/src/proto.rs +++ /dev/null @@ -1,31 +0,0 @@ -use serde::{Deserialize, Serialize}; -use std::net::SocketAddr; -use std::time::Duration; - -use crate::data::*; - -pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10); -pub const BLOCK_RW_TIMEOUT: Duration = Duration::from_secs(42); - -#[derive(Debug, Serialize, Deserialize)] -pub struct PingMessage { - pub id: UUID, - pub rpc_port: u16, - - pub status_hash: Hash, - pub config_version: u64, -} - -#[derive(Clone, Debug, Serialize, Deserialize)] -pub struct AdvertisedNode { - pub id: UUID, - pub addr: SocketAddr, -} - -#[derive(Debug, Serialize, Deserialize)] -pub struct PutBlockMessage { - pub hash: Hash, - - #[serde(with = "serde_bytes")] - pub data: Vec<u8>, -} |