aboutsummaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto.rs')
-rw-r--r--src/proto.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/proto.rs b/src/proto.rs
index 6cb12598..8b60784e 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -9,7 +9,10 @@ pub enum Message {
Error(String),
Ping(PingMessage),
- AdvertiseNode(AdvertiseNodeMessage),
+ PullStatus,
+ PullConfig,
+ AdvertiseNodesUp(Vec<AdvertisedNode>),
+ AdvertiseConfig(NetworkConfig),
}
#[derive(Debug, Serialize, Deserialize)]
@@ -17,12 +20,12 @@ pub struct PingMessage {
pub id: UUID,
pub rpc_port: u16,
- pub present_hash: Hash,
+ pub status_hash: Hash,
pub config_version: u64,
}
-#[derive(Debug, Serialize, Deserialize)]
-pub struct AdvertiseNodeMessage {
+#[derive(Clone, Debug, Serialize, Deserialize)]
+pub struct AdvertisedNode {
pub id: UUID,
pub addr: SocketAddr,
}