update substrate/extrinsic-pool (#616)

This commit is contained in:
Guanghua Guo authored and Gav Wood committed 2018-08-28 10:54:22 +01:00
1 parent 3a58595a85
commit f5c684dca6
4 files changed
+7 -7

No files matched your search

@@ -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]
@@ -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))
@@ -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.