mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Move transactions protocol to its own crate (#12264)
* Move transaction protocol to its own crate * Update Cargo.lock * Fix binaries * Update client/network/transactions/src/lib.rs Co-authored-by: Dmitry Markin <dmitry@markin.tech> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <info@kchr.de> * Apply review comments * Revert one change and apply cargo-fmt * Remove Transaction from Message * Add array-bytes * trigger CI * Add comment about codec index Co-authored-by: Dmitry Markin <dmitry@markin.tech> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -72,7 +72,7 @@ pub use sc_chain_spec::{
|
||||
pub use sc_consensus::ImportQueue;
|
||||
pub use sc_executor::NativeExecutionDispatch;
|
||||
#[doc(hidden)]
|
||||
pub use sc_network::config::{TransactionImport, TransactionImportFuture};
|
||||
pub use sc_network_transactions::config::{TransactionImport, TransactionImportFuture};
|
||||
pub use sc_rpc::{
|
||||
RandomIntegerSubscriptionId, RandomStringSubscriptionId, RpcSubscriptionIdProvider,
|
||||
};
|
||||
@@ -148,7 +148,7 @@ async fn build_network_future<
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static,
|
||||
H: sc_network::ExHashT,
|
||||
H: sc_network_common::ExHashT,
|
||||
>(
|
||||
role: Role,
|
||||
mut network: sc_network::NetworkWorker<B, H, C>,
|
||||
@@ -415,7 +415,8 @@ where
|
||||
.collect()
|
||||
}
|
||||
|
||||
impl<B, H, C, Pool, E> sc_network::config::TransactionPool<H, B> for TransactionPoolAdapter<C, Pool>
|
||||
impl<B, H, C, Pool, E> sc_network_transactions::config::TransactionPool<H, B>
|
||||
for TransactionPoolAdapter<C, Pool>
|
||||
where
|
||||
C: HeaderBackend<B>
|
||||
+ BlockBackend<B>
|
||||
|
||||
Reference in New Issue
Block a user