[2.x.x] deserialization now protocol version aware (#2824)
* introduce protocol version to deserialize and read * thread protocol version through our reader * example protocol version access in kernel read * fix our StreamingReader impl (WouldBlock woes) * debug log progress of txhashset download
This commit is contained in:
@@ -21,6 +21,7 @@ use std::time::SystemTime;
|
||||
|
||||
use crate::core::consensus::graph_weight;
|
||||
use crate::core::core::hash::Hash;
|
||||
use crate::core::ser::ProtocolVersion;
|
||||
|
||||
use chrono::prelude::*;
|
||||
|
||||
@@ -147,7 +148,7 @@ pub struct PeerStats {
|
||||
/// Address
|
||||
pub addr: String,
|
||||
/// version running
|
||||
pub version: p2p::msg::ProtocolVersion,
|
||||
pub version: ProtocolVersion,
|
||||
/// Peer user agent string.
|
||||
pub user_agent: String,
|
||||
/// difficulty reported by peer
|
||||
|
||||
Reference in New Issue
Block a user