Spellling corrections (no code changes) (#8971)

* Spelling corrections

* As this might break let's do as a separate PR
This commit is contained in:
Squirrel
2021-06-01 11:51:38 +01:00
committed by GitHub
parent 7a284fcf1d
commit c0dfe2c382
9 changed files with 19 additions and 19 deletions
@@ -240,7 +240,7 @@ impl<Hash: hash::Hash + Member + Serialize, Ex> ReadyTransactions<Hash, Ex> {
self.ready.read().contains_key(hash)
}
/// Retrive transaction by hash
/// Retrieve transaction by hash
pub fn by_hash(&self, hash: &Hash) -> Option<Arc<Transaction<Hash, Ex>>> {
self.by_hashes(&[hash.clone()]).into_iter().next().unwrap_or(None)
}
@@ -155,7 +155,7 @@ impl<B: ChainApi> ValidatedPool<B> {
/// A fast check before doing any further processing of a transaction, like validation.
///
/// If `ingore_banned` is `true`, it will not check if the transaction is banned.
/// If `ignore_banned` is `true`, it will not check if the transaction is banned.
///
/// It checks if the transaction is already imported or banned. If so, it returns an error.
pub fn check_is_known(
+1 -1
View File
@@ -578,7 +578,7 @@ impl<PoolApi, Block> MaintainedTransactionPool for BasicPool<PoolApi, Block>
async move {
// We keep track of everything we prune so that later we won't add
// tranactions with those hashes from the retracted blocks.
// transactions with those hashes from the retracted blocks.
let mut pruned_log = HashSet::<ExtrinsicHash<PoolApi>>::new();
// If there is a tree route, we use this to prune known tx based on the enacted
@@ -361,7 +361,7 @@ fn should_revalidate_across_many_blocks() {
#[test]
fn should_push_watchers_during_maintaince() {
fn should_push_watchers_during_maintenance() {
fn alice_uxt(nonce: u64) -> Extrinsic {
uxt(Alice, 209 + nonce)
}