mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 10:01:02 +00:00
change HashFor to HashingFor (#14483)
* change HashFor to HashingFor * fmt * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -399,11 +399,7 @@ impl ProtocolController {
|
||||
PeerState::Connected(direction)
|
||||
},
|
||||
None => {
|
||||
trace!(
|
||||
target: LOG_TARGET,
|
||||
"Adding reserved node {peer_id} on {:?}.",
|
||||
self.set_id,
|
||||
);
|
||||
trace!(target: LOG_TARGET, "Adding reserved node {peer_id} on {:?}.", self.set_id,);
|
||||
PeerState::NotConnected
|
||||
},
|
||||
};
|
||||
@@ -426,8 +422,7 @@ impl ProtocolController {
|
||||
None => {
|
||||
warn!(
|
||||
target: LOG_TARGET,
|
||||
"Trying to remove unknown reserved node {peer_id} from {:?}.",
|
||||
self.set_id,
|
||||
"Trying to remove unknown reserved node {peer_id} from {:?}.", self.set_id,
|
||||
);
|
||||
return
|
||||
},
|
||||
@@ -524,8 +519,7 @@ impl ProtocolController {
|
||||
if self.reserved_nodes.contains_key(&peer_id) {
|
||||
debug!(
|
||||
target: LOG_TARGET,
|
||||
"Ignoring request to disconnect reserved peer {peer_id} from {:?}.",
|
||||
self.set_id,
|
||||
"Ignoring request to disconnect reserved peer {peer_id} from {:?}.", self.set_id,
|
||||
);
|
||||
return
|
||||
}
|
||||
@@ -546,8 +540,7 @@ impl ProtocolController {
|
||||
None => {
|
||||
debug!(
|
||||
target: LOG_TARGET,
|
||||
"Trying to disconnect unknown peer {peer_id} from {:?}.",
|
||||
self.set_id,
|
||||
"Trying to disconnect unknown peer {peer_id} from {:?}.", self.set_id,
|
||||
);
|
||||
},
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ use sp_consensus::{
|
||||
};
|
||||
use sp_runtime::{
|
||||
traits::{
|
||||
Block as BlockT, CheckedSub, Hash, HashFor, Header as HeaderT, NumberFor, One,
|
||||
Block as BlockT, CheckedSub, Hash, HashingFor, Header as HeaderT, NumberFor, One,
|
||||
SaturatedConversion, Zero,
|
||||
},
|
||||
EncodedJustification, Justifications,
|
||||
@@ -3137,7 +3137,7 @@ fn validate_blocks<Block: BlockT>(
|
||||
}
|
||||
if let (Some(header), Some(body)) = (&b.header, &b.body) {
|
||||
let expected = *header.extrinsics_root();
|
||||
let got = HashFor::<Block>::ordered_trie_root(
|
||||
let got = HashingFor::<Block>::ordered_trie_root(
|
||||
body.iter().map(Encode::encode).collect(),
|
||||
sp_runtime::StateVersion::V0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user