Update Substrate & Polkadot (#861)

This commit is contained in:
Bastian Köcher
2021-12-15 04:10:12 +01:00
committed by GitHub
parent 0f10bb0aea
commit 81867735ee
2 changed files with 248 additions and 248 deletions
+246 -245
View File
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -22,7 +22,7 @@ use runtime::{
Balance, Block, BlockHashCount, Call, GenesisConfig, Runtime, Signature, SignedExtra, Balance, Block, BlockHashCount, Call, GenesisConfig, Runtime, Signature, SignedExtra,
SignedPayload, UncheckedExtrinsic, VERSION, SignedPayload, UncheckedExtrinsic, VERSION,
}; };
use sc_executor::{sp_wasm_interface::HostFunctions, WasmExecutionMethod, WasmExecutor}; use sc_executor::{WasmExecutionMethod, WasmExecutor};
use sc_executor_common::runtime_blob::RuntimeBlob; use sc_executor_common::runtime_blob::RuntimeBlob;
use sc_service::client; use sc_service::client;
use sp_blockchain::HeaderBackend; use sp_blockchain::HeaderBackend;
@@ -179,10 +179,9 @@ pub fn validate_block(
let mut ext = TestExternalities::default(); let mut ext = TestExternalities::default();
let mut ext_ext = ext.ext(); let mut ext_ext = ext.ext();
let executor = WasmExecutor::new( let executor = WasmExecutor::<sp_io::SubstrateHostFunctions>::new(
WasmExecutionMethod::Interpreted, WasmExecutionMethod::Interpreted,
Some(1024), Some(1024),
sp_io::SubstrateHostFunctions::host_functions(),
1, 1,
None, None,
2, 2,