mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 12:05:42 +00:00
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:
@@ -27,6 +27,7 @@ sp-version = { version = "2.0.0-rc5", path = "../../version" }
|
||||
sp-runtime = { version = "2.0.0-rc5", path = "../../runtime" }
|
||||
sp-utils = { version = "2.0.0-rc5", path = "../../utils" }
|
||||
sp-trie = { version = "2.0.0-rc5", path = "../../trie" }
|
||||
sp-api = { version = "2.0.0-rc5", path = "../../api" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.1", features = ["derive"] }
|
||||
parking_lot = "0.10.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user