mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 18:01:04 +00:00
change HashFor to HashingFor (#2828)
* change HashFor to HashingFor
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -24,7 +24,7 @@ use sc_client_api::BlockBackend;
|
||||
use sp_api::{ApiExt, ProvideRuntimeApi};
|
||||
use sp_consensus::BlockStatus;
|
||||
use sp_core::traits::SpawnNamed;
|
||||
use sp_runtime::traits::{Block as BlockT, HashFor, Header as HeaderT, Zero};
|
||||
use sp_runtime::traits::{Block as BlockT, HashingFor, Header as HeaderT, Zero};
|
||||
|
||||
use cumulus_client_consensus_common::ParachainCandidate;
|
||||
use polkadot_node_primitives::{
|
||||
@@ -222,7 +222,7 @@ where
|
||||
|
||||
let compact_proof = match candidate
|
||||
.proof
|
||||
.into_compact_proof::<HashFor<Block>>(*parent_header.state_root())
|
||||
.into_compact_proof::<HashingFor<Block>>(*parent_header.state_root())
|
||||
{
|
||||
Ok(proof) => proof,
|
||||
Err(e) => {
|
||||
|
||||
@@ -51,7 +51,7 @@ use sp_inherents::{CreateInherentDataProviders, InherentData, InherentDataProvid
|
||||
use sp_keystore::KeystorePtr;
|
||||
use sp_runtime::{
|
||||
generic::Digest,
|
||||
traits::{Block as BlockT, HashFor, Header as HeaderT, Member},
|
||||
traits::{Block as BlockT, HashingFor, Header as HeaderT, Member},
|
||||
};
|
||||
use sp_state_machine::StorageChanges;
|
||||
use sp_timestamp::Timestamp;
|
||||
@@ -324,7 +324,7 @@ where
|
||||
/// Seal a block with a signature in the header.
|
||||
pub fn seal<B: BlockT, T, P>(
|
||||
pre_sealed: B,
|
||||
storage_changes: StorageChanges<T, HashFor<B>>,
|
||||
storage_changes: StorageChanges<T, HashingFor<B>>,
|
||||
author_pub: &P::Public,
|
||||
keystore: &KeystorePtr,
|
||||
) -> Result<BlockImportParams<B, T>, Box<dyn Error>>
|
||||
|
||||
Reference in New Issue
Block a user