Add a DefaultQueue type alias to remove the need to use sp_api::TransactionFor (#6761)

* Add DefaultQueue

* Add DefaultImportQueue to the top level of sp-consensus
This commit is contained in:
Ashley authored and GitHub committed 2020-07-30 09:02:12 +00:00
1 parent 1284a491c2
commit 7df97abab4
8 files changed
+14 -12

No files matched your search

@@ -40,6 +40,11 @@ use crate::{
};
pub use basic_queue::BasicQueue;
/// A commonly-used Import Queue type.
///
/// This defines the transaction type of the `BasicQueue` to be the transaction type for a client.
pub type DefaultImportQueue<Block, Client> = BasicQueue<Block, sp_api::TransactionFor<Client, Block>>;
mod basic_queue;
pub mod buffered_link;
@@ -56,6 +56,7 @@ pub use block_import::{
};
pub use select_chain::SelectChain;
pub use sp_state_machine::Backend as StateBackend;
pub use import_queue::DefaultImportQueue;
/// Block status.
#[derive(Debug, PartialEq, Eq)]