mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 21:31:02 +00:00
Update parity-scale-codec to 2.0 (#7994)
* update cargo.toml * use 2.0 in mmmr
This commit is contained in:
committed by
GitHub
parent
bea4a6524d
commit
f48296e9ad
@@ -143,7 +143,7 @@ pub(crate) fn load_decode<B: AuxStore, T: Decode>(
|
||||
match backend.get_aux(key)? {
|
||||
None => Ok(None),
|
||||
Some(t) => T::decode(&mut &t[..])
|
||||
.map_err(|e| ClientError::Backend(format!("GRANDPA DB is corrupted: {}", e.what())))
|
||||
.map_err(|e| ClientError::Backend(format!("GRANDPA DB is corrupted: {}", e)))
|
||||
.map(Some)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user