Remove keystore when doing calls and producing a proof (#4196)

* Remove keystore parameter.

* Fix tests.
This commit is contained in:
Tomasz Drwięga
2019-11-25 19:55:21 +01:00
committed by Bastian Köcher
parent d8ca2f37df
commit 309c6c70d8
4 changed files with 6 additions and 26 deletions
-3
View File
@@ -262,9 +262,6 @@ where
&self.executor,
method,
call_data,
// Passing `None` here, since we don't really want to prove anything
// about our local keys.
None,
)
.map_err(Into::into)
}
+1 -3
View File
@@ -113,7 +113,7 @@ impl<Block, B, Local> CallExecutor<Block, Blake2Hasher> for
_manager: ExecutionManager<EM>,
native_call: Option<NC>,
recorder: &Option<ProofRecorder<Block>>,
extensions: Option<Extensions>,
extensions: Option<Extensions>,
) -> ClientResult<NativeOrEncoded<R>> where ExecutionManager<EM>: Clone {
// there's no actual way/need to specify native/wasm execution strategy on light node
// => we can safely ignore passed values
@@ -277,7 +277,6 @@ fn check_execution_proof_with_make_header<Header, E, H, MakeNextHeader: Fn(&Head
executor,
"Core_initialize_block",
&next_header.encode(),
None,
)?;
// execute method
@@ -287,7 +286,6 @@ fn check_execution_proof_with_make_header<Header, E, H, MakeNextHeader: Fn(&Head
executor,
&request.method,
&request.call_data,
None,
).map_err(Into::into)
}