Compare commits

..

No commits in common. "c8c98bc3dff540b43bb0307ccc83281e17135c94" and "5b022f693cafc0dd210f9ff36de1386681a912d1" have entirely different histories.

6 changed files with 7 additions and 7 deletions

2
Cargo.lock generated
View File

@ -564,7 +564,7 @@ dependencies = [
[[package]]
name = "ghost-telemetry-core"
version = "0.1.3"
version = "0.1.2"
dependencies = [
"anyhow",
"bimap",

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-telemetry-core"
version = "0.1.3"
version = "0.1.2"
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
edition = "2021"

View File

@ -68,7 +68,7 @@ pub struct RemoveNodeResult {
/// number of nodes to connect.
static FIRST_PARTY_NETWORKS: Lazy<HashSet<BlockHash>> = Lazy::new(|| {
let genesis_hash_strs = &[
"0x475e48fab52f3d0587b6b03101d224560c549e984d1dee197b7d8b55830e7da3", // Casper v0.8.5
"0x5e1190682f1a6409cdfd691c0b23a6db792864d8994e591e9c19a31d8163989f", // Casper v0.8.4
];
genesis_hash_strs

View File

@ -278,7 +278,7 @@ mod test {
}
fn get_valid_genesis() -> BlockHash {
BlockHash::from_str("0x475e48fab52f3d0587b6b03101d224560c549e984d1dee197b7d8b55830e7da3")
BlockHash::from_str("0x5e1190682f1a6409cdfd691c0b23a6db792864d8994e591e9c19a31d8163989f")
.expect("Should be good genesis")
}

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-telemetry-shard"
version = "0.1.1"
version = "0.1.0"
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
edition = "2021"

View File

@ -307,14 +307,14 @@ where
// Deserialize from JSON, warning in debug mode if deserialization fails:
let node_message: json_message::NodeMessage = match serde_json::from_slice(&bytes) {
Ok(node_message) => node_message,
#[cfg(debug_assertions)]
#[cfg(debug)]
Err(e) => {
let bytes: &[u8] = bytes.get(..512).unwrap_or_else(|| &bytes);
let msg_start = std::str::from_utf8(bytes).unwrap_or_else(|_| "INVALID UTF8");
log::warn!("Failed to parse node message ({msg_start}): {e}");
continue;
},
#[cfg(not(debug_assertions))]
#[cfg(not(debug))]
Err(_) => {
continue;
}