Companion pr for Substrate #5741 (#1026)

* Companion pr for Substrate #5741

* update to substrate master

Co-authored-by: André Silva <andre.beat@gmail.com>
This commit is contained in:
Bastian Köcher
2020-04-23 19:07:11 +02:00
committed by GitHub
parent d5d2b6a50d
commit a8be8e01fb
2 changed files with 135 additions and 127 deletions
+134 -126
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -183,7 +183,6 @@ pub fn validate_candidate_internal<E: Externalities + 'static>(
// TODO: Make sure we don't use more than 1GB: https://github.com/paritytech/polkadot/issues/699
Some(1024),
HostFunctions::host_functions(),
false,
8
);
let res = executor.call_in_wasm(
@@ -192,6 +191,7 @@ pub fn validate_candidate_internal<E: Externalities + 'static>(
"validate_block",
encoded_call_data,
&mut ext,
sp_core::traits::MissingHostFunctions::Allow,
)?;
ValidationResult::decode(&mut &res[..]).map_err(|_| Error::BadReturn.into())