Compare commits
2 Commits
5b022f693c
...
c8c98bc3df
| Author | SHA1 | Date | |
|---|---|---|---|
| c8c98bc3df | |||
| 6d46692e4c |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -564,7 +564,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ghost-telemetry-core"
|
name = "ghost-telemetry-core"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bimap",
|
"bimap",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-telemetry-core"
|
name = "ghost-telemetry-core"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
|
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ pub struct RemoveNodeResult {
|
|||||||
/// number of nodes to connect.
|
/// number of nodes to connect.
|
||||||
static FIRST_PARTY_NETWORKS: Lazy<HashSet<BlockHash>> = Lazy::new(|| {
|
static FIRST_PARTY_NETWORKS: Lazy<HashSet<BlockHash>> = Lazy::new(|| {
|
||||||
let genesis_hash_strs = &[
|
let genesis_hash_strs = &[
|
||||||
"0x5e1190682f1a6409cdfd691c0b23a6db792864d8994e591e9c19a31d8163989f", // Casper v0.8.4
|
"0x475e48fab52f3d0587b6b03101d224560c549e984d1dee197b7d8b55830e7da3", // Casper v0.8.5
|
||||||
];
|
];
|
||||||
|
|
||||||
genesis_hash_strs
|
genesis_hash_strs
|
||||||
|
|||||||
@ -278,7 +278,7 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_valid_genesis() -> BlockHash {
|
fn get_valid_genesis() -> BlockHash {
|
||||||
BlockHash::from_str("0x5e1190682f1a6409cdfd691c0b23a6db792864d8994e591e9c19a31d8163989f")
|
BlockHash::from_str("0x475e48fab52f3d0587b6b03101d224560c549e984d1dee197b7d8b55830e7da3")
|
||||||
.expect("Should be good genesis")
|
.expect("Should be good genesis")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-telemetry-shard"
|
name = "ghost-telemetry-shard"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
|
authors = ["Uncle Stinky uncle.stinky@ghostchain.io"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|||||||
@ -307,14 +307,14 @@ where
|
|||||||
// Deserialize from JSON, warning in debug mode if deserialization fails:
|
// Deserialize from JSON, warning in debug mode if deserialization fails:
|
||||||
let node_message: json_message::NodeMessage = match serde_json::from_slice(&bytes) {
|
let node_message: json_message::NodeMessage = match serde_json::from_slice(&bytes) {
|
||||||
Ok(node_message) => node_message,
|
Ok(node_message) => node_message,
|
||||||
#[cfg(debug)]
|
#[cfg(debug_assertions)]
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let bytes: &[u8] = bytes.get(..512).unwrap_or_else(|| &bytes);
|
let bytes: &[u8] = bytes.get(..512).unwrap_or_else(|| &bytes);
|
||||||
let msg_start = std::str::from_utf8(bytes).unwrap_or_else(|_| "INVALID UTF8");
|
let msg_start = std::str::from_utf8(bytes).unwrap_or_else(|_| "INVALID UTF8");
|
||||||
log::warn!("Failed to parse node message ({msg_start}): {e}");
|
log::warn!("Failed to parse node message ({msg_start}): {e}");
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
#[cfg(not(debug))]
|
#[cfg(not(debug_assertions))]
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user