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

Commit

Permalink
update substrate/extrinsic-pool (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
gguoss authored and gavofyork committed Aug 28, 2018
1 parent 8e63e90 commit 2628329
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion substrate/extrinsic-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ error-chain = "0.12"
futures = "0.1"
log = "0.3"
parking_lot = "0.4"
transaction-pool = "1.12"
transaction-pool = "1.13.2"
substrate-runtime-primitives = { path = "../../substrate/runtime/primitives" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion substrate/extrinsic-pool/src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<H, T> txpool::Listener<T> for Listener<H> where
debug!(target: "extrinsic-pool", "Extrinsic canceled: {:?}", tx);
}

fn mined(&mut self, tx: &Arc<T>) {
fn culled(&mut self, tx: &Arc<T>) {
// TODO [ToDr] latest block number?
let header_hash = Default::default();
self.fire(tx.hash(), |watcher| watcher.finalised(header_hash))
Expand Down
2 changes: 1 addition & 1 deletion substrate/extrinsic-pool/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub trait ChainApi: Send + Sync {
/// Error type.
type Error: From<txpool::Error> + IntoPoolError;
/// Score type.
type Score: ::std::cmp::Ord + Clone + Default + fmt::Debug + Send + Send + Sync;
type Score: ::std::cmp::Ord + Clone + Default + fmt::Debug + Send + Send + Sync + fmt::LowerHex;
/// Custom scoring update event type.
type Event: ::std::fmt::Debug;
/// Verify extrinsic at given block.
Expand Down

0 comments on commit 2628329

Please sign in to comment.