WIP filling in core aggregator match arms and various other tweaks

This commit is contained in:
James Wilson
2021-06-23 09:34:56 +01:00
parent 83e2cee295
commit 63283195ad
11 changed files with 370 additions and 54 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
use std::net::IpAddr;
use crate::node::Payload;
use crate::types::{NodeDetails};
use crate::types::{NodeDetails, BlockHash};
use crate::assign_id::Id;
use serde::{Deserialize, Serialize};
@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
pub type LocalId = Id;
/// A global ID assigned to messages from each different pair of ConnId+LocalId.
pub type GlobalId = Id;
pub type GlobalId = usize;
/// Message sent from the shard to the backend core
#[derive(Deserialize, Serialize, Debug, Clone)]
@@ -20,6 +20,7 @@ pub enum FromShardAggregator {
ip: Option<IpAddr>,
node: NodeDetails,
local_id: LocalId,
genesis_hash: BlockHash
},
/// Send a message payload to update details for a node
UpdateNode {