mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 04:11:07 +00:00
Tagged transaction queue integration (#893)
* Make the graph generic. * Adapting pool API for the graph. * Merge pool & graph. * Restructure. * Fix test of transaction pool. * Get rid of node/transaction-pool. * Compilation fixes. * Test7 * Fix compilation of tests. * Revert runtime changes. * Add validate_transaction to test-runtime. * Fix RPC tests. * Add clearing of the old transactions. * Trigger pool events. * Use new queue API. * Fix wasm build, re-export Hasher. * No warning if validate transaction fails. * Get rid of Into<u64> and use As
This commit is contained in:
@@ -25,7 +25,7 @@ pub extern crate parity_codec as codec;
|
||||
extern crate sr_version as runtime_version;
|
||||
|
||||
#[doc(hidden)]
|
||||
pub use primitives::{traits::Block as BlockT, generic::BlockId, ApplyResult};
|
||||
pub use primitives::{traits::Block as BlockT, generic::BlockId, transaction_validity::TransactionValidity, ApplyResult};
|
||||
use runtime_version::RuntimeVersion;
|
||||
use rstd::vec::Vec;
|
||||
#[doc(hidden)]
|
||||
@@ -485,7 +485,7 @@ decl_apis! {
|
||||
/// #[macro_use]
|
||||
/// extern crate sr_api as runtime_api;
|
||||
///
|
||||
/// use runtime_api::runtime::{Core, OldTxQueue};
|
||||
/// use runtime_api::runtime::{Core, TaggedTransactionQueue};
|
||||
///
|
||||
/// impl_apis! {
|
||||
/// impl Core<Block, AccountId> for Runtime {
|
||||
@@ -498,13 +498,10 @@ decl_apis! {
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// impl OldTxQueue<AccountId, Index, Address, LookupId> for Runtime {
|
||||
/// fn account_nonce(account: AccountId) -> Index {
|
||||
/// 0
|
||||
/// }
|
||||
/// fn lookup_address(address: Address) -> Option<LookupId> {
|
||||
/// None
|
||||
/// }
|
||||
/// impl TaggedTransactionQueue<Block> for Runtime {
|
||||
/// fn validate_transaction(tx: <Block as BlockT>::Extrinsic) -> TransactionValidity {
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user