mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Spellling corrections (no code changes) (#8971)
* Spelling corrections * As this might break let's do as a separate PR
This commit is contained in:
@@ -27,8 +27,8 @@ use crate::state::ReadProof;
|
||||
|
||||
/// Substrate child state API
|
||||
///
|
||||
/// Note that all `PrefixedStorageKey` are desierialized
|
||||
/// from json and not guaranted valid.
|
||||
/// Note that all `PrefixedStorageKey` are deserialized
|
||||
/// from json and not guaranteed valid.
|
||||
#[rpc]
|
||||
pub trait ChildStateApi<Hash> {
|
||||
/// RPC Metadata
|
||||
|
||||
@@ -252,7 +252,7 @@ impl KeystoreContainer {
|
||||
/// Should be called right away at startup and not at runtime:
|
||||
/// even though this overrides any previously set remote store, it
|
||||
/// does not reset any references previously handed out - they will
|
||||
/// stick araound.
|
||||
/// stick around.
|
||||
pub fn set_remote_keystore<T>(&mut self, remote: Arc<T>)
|
||||
where T: CryptoStore + SyncCryptoStore + 'static
|
||||
{
|
||||
@@ -268,7 +268,7 @@ impl KeystoreContainer {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the synchrnous keystore wrapper
|
||||
/// Returns the synchronous keystore wrapper
|
||||
pub fn sync_keystore(&self) -> SyncCryptoStorePtr {
|
||||
if let Some(c) = self.remote.as_ref() {
|
||||
c.sync_keystore_ref()
|
||||
@@ -850,7 +850,7 @@ pub struct BuildNetworkParams<'a, TBl: BlockT, TExPool, TImpQu, TCl> {
|
||||
pub import_queue: TImpQu,
|
||||
/// An optional, shared data fetcher for light clients.
|
||||
pub on_demand: Option<Arc<OnDemand<TBl>>>,
|
||||
/// A block annouce validator builder.
|
||||
/// A block announce validator builder.
|
||||
pub block_announce_validator_builder: Option<Box<
|
||||
dyn FnOnce(Arc<TCl>) -> Box<dyn BlockAnnounceValidator<TBl> + Send> + Send
|
||||
>>,
|
||||
|
||||
@@ -400,7 +400,7 @@ impl Telemetry {
|
||||
.map_err(|_| Error::TelemetryWorkerDropped)
|
||||
}
|
||||
|
||||
/// Make a new clonable handle to this [`Telemetry`]. This is used for reporting telemetries.
|
||||
/// Make a new cloneable handle to this [`Telemetry`]. This is used for reporting telemetries.
|
||||
pub fn handle(&self) -> TelemetryHandle {
|
||||
TelemetryHandle {
|
||||
message_sender: Arc::new(Mutex::new(self.message_sender.clone())),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user