mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Fix typos and markdown (#2388)
* Fix typos * Align properly * Update core/consensus/slots/src/lib.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/network/src/test/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/finality-grandpa/src/communication/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/consensus/common/src/import_queue.rs Co-Authored-By: cmichi <mich@elmueller.net>
This commit is contained in:
committed by
Bastian Köcher
parent
f0202aa425
commit
a0e0d9b03d
@@ -43,9 +43,9 @@ use crate::ready::ReadyTransactions;
|
||||
/// Successful import result.
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum Imported<Hash, Ex> {
|
||||
/// Transaction was successfuly imported to Ready queue.
|
||||
/// Transaction was successfully imported to Ready queue.
|
||||
Ready {
|
||||
/// Hash of transaction that was successfuly imported.
|
||||
/// Hash of transaction that was successfully imported.
|
||||
hash: Hash,
|
||||
/// Transactions that got promoted from the Future queue.
|
||||
promoted: Vec<Hash>,
|
||||
@@ -54,9 +54,9 @@ pub enum Imported<Hash, Ex> {
|
||||
/// Transactions removed from the Ready pool (replaced).
|
||||
removed: Vec<Arc<Transaction<Hash, Ex>>>,
|
||||
},
|
||||
/// Transaction was successfuly imported to Future queue.
|
||||
/// Transaction was successfully imported to Future queue.
|
||||
Future {
|
||||
/// Hash of transaction that was successfuly imported.
|
||||
/// Hash of transaction that was successfully imported.
|
||||
hash: Hash,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ error_chain! {
|
||||
description("Runtime check for the transaction failed."),
|
||||
display("Invalid Transaction. Error Code: {}", e),
|
||||
}
|
||||
/// The transaction is temporarily baned
|
||||
/// The transaction is temporarily banned
|
||||
TemporarilyBanned {
|
||||
description("Transaction is temporarily banned from importing to the pool."),
|
||||
display("Temporarily Banned"),
|
||||
|
||||
@@ -304,7 +304,7 @@ impl<B: ChainApi> Pool<B> {
|
||||
let hashes = status.pruned.iter().map(|tx| tx.hash.clone()).collect::<Vec<_>>();
|
||||
let results = self.submit_at(at, status.pruned.into_iter().map(|tx| tx.data.clone()))?;
|
||||
|
||||
// Collect the hashes of transactions that now became invalid (meaning that they are succesfuly pruned).
|
||||
// Collect the hashes of transactions that now became invalid (meaning that they are succesfully pruned).
|
||||
let hashes = results.into_iter().enumerate().filter_map(|(idx, r)| match r.map_err(error::IntoPoolError::into_pool_error) {
|
||||
Err(Ok(err)) => match err.kind() {
|
||||
error::ErrorKind::InvalidTransaction(_) => Some(hashes[idx].clone()),
|
||||
@@ -333,7 +333,7 @@ impl<B: ChainApi> Pool<B> {
|
||||
///
|
||||
/// Stale transactions are transaction beyond their longevity period.
|
||||
/// Note this function does not remove transactions that are already included in the chain.
|
||||
/// See `prune_tags` ifyou want this.
|
||||
/// See `prune_tags` if you want this.
|
||||
pub fn clear_stale(&self, at: &BlockId<B::Block>) -> Result<(), B::Error> {
|
||||
let block_number = self.api.block_id_to_number(at)?
|
||||
.ok_or_else(|| error::ErrorKind::Msg(format!("Invalid block id: {:?}", at)).into())?
|
||||
|
||||
Reference in New Issue
Block a user