mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Monitor transactions rejected from the pool as invalid (#5992)
This commit is contained in:
@@ -296,7 +296,9 @@ impl<PoolApi, Block> TransactionPool for BasicPool<PoolApi, Block>
|
||||
}
|
||||
|
||||
fn remove_invalid(&self, hashes: &[TxHash<Self>]) -> Vec<Arc<Self::InPoolTransaction>> {
|
||||
self.pool.validated_pool().remove_invalid(hashes)
|
||||
let removed = self.pool.validated_pool().remove_invalid(hashes);
|
||||
self.metrics.report(|metrics| metrics.validations_invalid.inc_by(removed.len() as u64));
|
||||
removed
|
||||
}
|
||||
|
||||
fn status(&self) -> PoolStatus {
|
||||
|
||||
Reference in New Issue
Block a user