Update parity-scale-codec to 2.0 (#7994)

* update cargo.toml

* use 2.0 in mmmr
This commit is contained in:
Guillaume Thiolliere
2021-01-29 13:22:45 +01:00
committed by GitHub
parent bea4a6524d
commit f48296e9ad
179 changed files with 316 additions and 383 deletions
@@ -370,7 +370,7 @@ pub(super) struct NeighborPacket<N> {
/// A versioned neighbor packet.
#[derive(Debug, Encode, Decode)]
pub(super) enum VersionedNeighborPacket<N> {
#[codec(index = "1")]
#[codec(index = 1)]
V1(NeighborPacket<N>),
}
@@ -1415,7 +1415,7 @@ impl<Block: BlockT> GossipValidator<Block> {
}
Err(e) => {
message_name = None;
debug!(target: "afg", "Error decoding message: {}", e.what());
debug!(target: "afg", "Error decoding message: {}", e);
telemetry!(CONSENSUS_DEBUG; "afg.err_decoding_msg"; "" => "");
let len = std::cmp::min(i32::max_value() as usize, data.len()) as i32;