Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 2628329

Browse files
gguossgavofyork
authored andcommitted
update substrate/extrinsic-pool (#616)
1 parent 8e63e90 commit 2628329

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

substrate/extrinsic-pool/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error-chain = "0.12"
1010
futures = "0.1"
1111
log = "0.3"
1212
parking_lot = "0.4"
13-
transaction-pool = "1.12"
13+
transaction-pool = "1.13.2"
1414
substrate-runtime-primitives = { path = "../../substrate/runtime/primitives" }
1515

1616
[dev-dependencies]

substrate/extrinsic-pool/src/listener.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<H, T> txpool::Listener<T> for Listener<H> where
8787
debug!(target: "extrinsic-pool", "Extrinsic canceled: {:?}", tx);
8888
}
8989

90-
fn mined(&mut self, tx: &Arc<T>) {
90+
fn culled(&mut self, tx: &Arc<T>) {
9191
// TODO [ToDr] latest block number?
9292
let header_hash = Default::default();
9393
self.fire(tx.hash(), |watcher| watcher.finalised(header_hash))

substrate/extrinsic-pool/src/pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub trait ChainApi: Send + Sync {
9393
/// Error type.
9494
type Error: From<txpool::Error> + IntoPoolError;
9595
/// Score type.
96-
type Score: ::std::cmp::Ord + Clone + Default + fmt::Debug + Send + Send + Sync;
96+
type Score: ::std::cmp::Ord + Clone + Default + fmt::Debug + Send + Send + Sync + fmt::LowerHex;
9797
/// Custom scoring update event type.
9898
type Event: ::std::fmt::Debug;
9999
/// Verify extrinsic at given block.

0 commit comments

Comments
 (0)