mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
62bca87f3a
* finalized block event triggers tx maintanance * tx-pool: enactment helper introduced * tx-pool: ChainApi: added tree_route method * enactment logic implemented + tests Signed-off-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> * Some additional tests * minor improvements * trigger CI job * fix compilation errors ChainApi::tree_route return type changed to Result<Option<..>>, as some implementations (tests) are not required to provide this tree route. * formatting * trait removed * implementation slightly simplified (thanks to @koute) * get rid of Arc<> in EnactmentState return value * minor improvement * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Apply suggestions from code review * comment updated + formatting * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: Davide Galassi <davxy@datawok.net> * formatting * finalization notification bug fix + new test case + log::warn message when finalized block is being retracted by new event * added error message on tree_route failure * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * use provided tree_route in Finalized event * Option removed from ChainApi::tree_route * doc added, test and logs improved * handle_enactment aligned with original implementation * use async-await * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * formatting + warn->debug * compilation error fix * enactment_state initializers added * enactment_state: Option removed * manual-seal: compilation & tests fix * manual-seal: tests fixed * tests cleanup * another compilation error fixed * TreeRoute::new added * get rid of pub hack * one more test added * formatting * TreeRoute::new doc added + formatting * Apply suggestions from code review Co-authored-by: Davide Galassi <davxy@datawok.net> * (bool,Option) simplified to Option * log message improved * yet another review suggestions applied * get rid of hash in handle_enactment * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * Update client/transaction-pool/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * minor corrections * EnactmentState moved to new file * File header corrected * error formatting aligned with codebase * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * remove commented code * small nits Signed-off-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: Davide Galassi <davxy@datawok.net> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: André Silva <andrerfosilva@gmail.com>
50 lines
2.1 KiB
TOML
50 lines
2.1 KiB
TOML
[package]
|
|
name = "sc-transaction-pool"
|
|
version = "4.0.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "Substrate transaction pool implementation."
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.57"
|
|
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
|
futures = "0.3.21"
|
|
futures-timer = "3.0.2"
|
|
linked-hash-map = "0.5.4"
|
|
log = "0.4.17"
|
|
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
|
parking_lot = "0.12.1"
|
|
serde = { version = "1.0.136", features = ["derive"] }
|
|
thiserror = "1.0.30"
|
|
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
|
|
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
|
sc-transaction-pool-api = { version = "4.0.0-dev", path = "./api" }
|
|
sc-utils = { version = "4.0.0-dev", path = "../utils" }
|
|
sp-api = { version = "4.0.0-dev", path = "../../primitives/api" }
|
|
sp-blockchain = { version = "4.0.0-dev", path = "../../primitives/blockchain" }
|
|
sp-core = { version = "6.0.0", path = "../../primitives/core" }
|
|
sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }
|
|
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
|
|
sp-transaction-pool = { version = "4.0.0-dev", path = "../../primitives/transaction-pool" }
|
|
|
|
[dev-dependencies]
|
|
array-bytes = "4.1"
|
|
assert_matches = "1.3.0"
|
|
criterion = "0.3"
|
|
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
|
|
sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" }
|
|
substrate-test-runtime = { version = "2.0.0", path = "../../test-utils/runtime" }
|
|
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
|
substrate-test-runtime-transaction-pool = { version = "2.0.0", path = "../../test-utils/runtime/transaction-pool" }
|
|
|
|
[[bench]]
|
|
name = "basics"
|
|
harness = false
|