mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-02 23:27:24 +00:00
update substrate/extrinsic-pool (#616)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user