mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 17:41:08 +00:00
Merge txpool-runtime-api with txpool-api (#4320)
* Remove transaction-pool-runtime-api * Merge runtime-api with transaction-pool.
This commit is contained in:
committed by
Bastian Köcher
parent
70db5da6c4
commit
3805393a13
@@ -34,7 +34,7 @@ frame-system-rpc-runtime-api = { path = "../../../frame/system/rpc/runtime-api",
|
||||
pallet-timestamp = { path = "../../../frame/timestamp", default-features = false }
|
||||
sc-client = { path = "../../../client", optional = true }
|
||||
sp-trie = { path = "../../../primitives/trie", default-features = false }
|
||||
txpool-runtime-api = { package = "sp-transaction-pool-runtime-api", path = "../../../primitives/transaction-pool/runtime-api", default-features = false }
|
||||
sp-transaction-pool = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool", default-features = false }
|
||||
trie-db = { version = "0.16.0", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -78,6 +78,6 @@ std = [
|
||||
"pallet-timestamp/std",
|
||||
"sc-client",
|
||||
"sp-trie/std",
|
||||
"txpool-runtime-api/std",
|
||||
"sp-transaction-pool/std",
|
||||
"trie-db/std",
|
||||
]
|
||||
|
||||
@@ -477,7 +477,7 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
impl txpool_runtime_api::TaggedTransactionQueue<Block> for Runtime {
|
||||
impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
|
||||
fn validate_transaction(utx: <Block as BlockT>::Extrinsic) -> TransactionValidity {
|
||||
if let Extrinsic::IncludeData(data) = utx {
|
||||
return Ok(ValidTransaction {
|
||||
@@ -662,7 +662,7 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
impl txpool_runtime_api::TaggedTransactionQueue<Block> for Runtime {
|
||||
impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
|
||||
fn validate_transaction(utx: <Block as BlockT>::Extrinsic) -> TransactionValidity {
|
||||
if let Extrinsic::IncludeData(data) = utx {
|
||||
return Ok(ValidTransaction{
|
||||
|
||||
Reference in New Issue
Block a user