Make the tests pass

This commit is contained in:
Bastian Köcher
2019-03-07 10:56:00 +01:00
parent d629154da5
commit 79a7868c6c
5 changed files with 773 additions and 1063 deletions
+359 -700
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -13,9 +13,9 @@ substrate-primitives = { git = "https://github.com/paritytech/substrate", branch
sr-primitives = { git = "https://github.com/paritytech/substrate", branch = "bkchr-validate_block" } sr-primitives = { git = "https://github.com/paritytech/substrate", branch = "bkchr-validate_block" }
# polkadot deps # polkadot deps
polkadot-service = { git = "https://github.com/paritytech/polkadot" } polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "bkchr-validate_block" }
polkadot-primitives = { git = "https://github.com/paritytech/polkadot" } polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "bkchr-validate_block" }
polkadot-runtime = { git = "https://github.com/paritytech/polkadot" } polkadot-runtime = { git = "https://github.com/paritytech/polkadot", branch = "bkchr-validate_block" }
# other deps # other deps
futures = "0.1.21" futures = "0.1.21"
+2 -2
View File
@@ -169,8 +169,8 @@ impl<B, E, RA> PolkadotClient for Arc<Client<B, E, PBlock, RA>> where
{ {
type Error = ClientError; type Error = ClientError;
type HeadUpdates = Box<Stream<Item=HeadUpdate,Error=Self::Error> + Send>; type HeadUpdates = Box<Stream<Item=HeadUpdate, Error=Self::Error> + Send>;
type Finalized = Box<Stream<Item=Vec<u8>,Error=Self::Error> + Send>; type Finalized = Box<Stream<Item=Vec<u8>, Error=Self::Error> + Send>;
fn head_updates(&self, para_id: ParaId) -> Self::HeadUpdates { fn head_updates(&self, para_id: ParaId) -> Self::HeadUpdates {
let parachain_key = parachain_key(para_id); let parachain_key = parachain_key(para_id);
+1 -1
View File
@@ -39,7 +39,7 @@ mod tests;
/// struct Block; /// struct Block;
/// struct BlockExecutor; /// struct BlockExecutor;
/// ///
/// srml_parachain::register_validate_block!(Block, BlockExecutor); /// cumulus_runtime::register_validate_block!(Block, BlockExecutor);
/// ///
/// # fn main() {} /// # fn main() {}
/// ``` /// ```
File diff suppressed because it is too large Load Diff