mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 08:05:41 +00:00
Update substrate (#878)
* Switch branch * Small changes * Update substrate branch * Switch * Revert "Switch branch" This reverts commit b9d48b2ce8f5cbfa379dd385e817e80870391d9d. * fix * add `wipe` and `commit` * Remove deprecated_host_interface * Switch branch * HasherFor -> HashFor * More HasherFor changes * Final touches * Revert "Switch branch" This reverts commit d0da27313839559de01f59690f3826fe587becb8. Co-authored-by: thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ use polkadot_primitives::parachain::{
|
||||
use parking_lot::Mutex;
|
||||
use sp_blockchain::Result as ClientResult;
|
||||
use sp_api::{ApiRef, Core, RuntimeVersion, StorageProof, ApiErrorExt, ApiExt, ProvideRuntimeApi};
|
||||
use sp_runtime::traits::{Block as BlockT, HasherFor, NumberFor};
|
||||
use sp_runtime::traits::{Block as BlockT, HashFor, NumberFor};
|
||||
use sp_state_machine::ChangesTrieState;
|
||||
|
||||
use std::collections::HashMap;
|
||||
@@ -206,7 +206,7 @@ impl ApiErrorExt for RuntimeApi {
|
||||
}
|
||||
|
||||
impl ApiExt<Block> for RuntimeApi {
|
||||
type StateBackend = sp_state_machine::InMemoryBackend<sp_api::HasherFor<Block>>;
|
||||
type StateBackend = sp_state_machine::InMemoryBackend<HashFor<Block>>;
|
||||
|
||||
fn map_api_result<F: FnOnce(&Self) -> Result<R, E>, R, E>(
|
||||
&self,
|
||||
@@ -228,7 +228,7 @@ impl ApiExt<Block> for RuntimeApi {
|
||||
fn into_storage_changes(
|
||||
&self,
|
||||
_: &Self::StateBackend,
|
||||
_: Option<&ChangesTrieState<HasherFor<Block>, NumberFor<Block>>>,
|
||||
_: Option<&ChangesTrieState<HashFor<Block>, NumberFor<Block>>>,
|
||||
_: <Block as sp_api::BlockT>::Hash,
|
||||
) -> std::result::Result<sp_api::StorageChanges<Self::StateBackend, Block>, String>
|
||||
where Self: Sized
|
||||
|
||||
@@ -758,9 +758,6 @@ async fn statement_import_loop<Api>(
|
||||
if let Some(producer) = producer {
|
||||
trace!(target: "validation", "driving statement work to completion");
|
||||
|
||||
let table = table.clone();
|
||||
let gossip_handle = gossip_handle.clone();
|
||||
|
||||
let work = producer.prime(api.clone()).validate();
|
||||
let work = future::select(work.boxed(), exit.clone()).map(drop);
|
||||
let _ = executor.spawn(work);
|
||||
|
||||
Reference in New Issue
Block a user