Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix various spelling errors #4940

Merged
merged 202 commits into from
Feb 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
f3cffea
meaningfull -> meaningful
shawntabrizi Feb 15, 2020
8d8f394
initialise -> initialize
shawntabrizi Feb 15, 2020
c11054a
tokans -> tokens
shawntabrizi Feb 15, 2020
55987bb
incentivise -> incentivize
shawntabrizi Feb 15, 2020
8b5abdb
lenght -> length
shawntabrizi Feb 15, 2020
3e612d7
incentivisation -> incentivization
shawntabrizi Feb 15, 2020
d39fc65
doesnt't -> doesn't
shawntabrizi Feb 15, 2020
ececdee
overwriten -> overwritten
shawntabrizi Feb 15, 2020
9a4baf5
lifecycle -> life cycle
shawntabrizi Feb 15, 2020
70bdd9d
lifecycle -> life cycle
shawntabrizi Feb 15, 2020
8648c15
usefull -> useful
shawntabrizi Feb 15, 2020
357b77e
noone -> no one
shawntabrizi Feb 15, 2020
e12d26a
spaming -> spamming
shawntabrizi Feb 15, 2020
723e551
defered -> deferred
shawntabrizi Feb 15, 2020
75be5ad
hieght -> height
shawntabrizi Feb 15, 2020
49d5c46
sumation -> summation
shawntabrizi Feb 15, 2020
cdaaa3c
ingore -> ignore
shawntabrizi Feb 15, 2020
d1dd5ce
registed -> registered
shawntabrizi Feb 15, 2020
d33db79
Auxialary -> Auxiliary
shawntabrizi Feb 15, 2020
a4f2889
loggin -> logging
shawntabrizi Feb 15, 2020
197fdca
independance -> independence
shawntabrizi Feb 15, 2020
b7e12a0
trailling -> trailing
shawntabrizi Feb 15, 2020
f9a60a8
responsability -> responsibility
shawntabrizi Feb 15, 2020
f1e70d1
trunkated -> truncated
shawntabrizi Feb 15, 2020
71e7ae4
Weither -> Whether
shawntabrizi Feb 15, 2020
068b1bc
informations -> information
shawntabrizi Feb 15, 2020
363dc19
Runtume -> Runtime
shawntabrizi Feb 15, 2020
f09aec3
choosen -> chosen
shawntabrizi Feb 15, 2020
0e4e546
delcataion -> declaration
shawntabrizi Feb 15, 2020
2f34b1b
Unchekced -> Unchecked
shawntabrizi Feb 15, 2020
76423e9
defintion -> definition
shawntabrizi Feb 15, 2020
0a260c4
scrach -> scratch
shawntabrizi Feb 15, 2020
271482b
imput -> input
shawntabrizi Feb 15, 2020
183083e
transfered -> transferred
shawntabrizi Feb 15, 2020
3888830
endownment -> endowment
shawntabrizi Feb 15, 2020
9519c3d
Determinator -> Determiner
shawntabrizi Feb 15, 2020
c236852
relevent -> relevant
shawntabrizi Feb 15, 2020
c399fc8
emited -> emitted
shawntabrizi Feb 15, 2020
dcd2a07
acocunt -> account
shawntabrizi Feb 15, 2020
5e0bf50
proprotional -> proportional
shawntabrizi Feb 15, 2020
4f096ac
instantiaion -> instantiation
shawntabrizi Feb 15, 2020
2c98bc3
commited -> committed
shawntabrizi Feb 15, 2020
5ce5cf0
tombstonedead -> tombstone
shawntabrizi Feb 15, 2020
9a90dee
uwnrap -> unwrap
shawntabrizi Feb 15, 2020
6c87f10
acount -> account
shawntabrizi Feb 15, 2020
ff1fe36
specialised -> specialized
shawntabrizi Feb 15, 2020
008bbf1
existant -> existent
shawntabrizi Feb 15, 2020
29883cc
requried -> required
shawntabrizi Feb 15, 2020
0e26f06
Anull -> Annul
shawntabrizi Feb 15, 2020
4d29d0f
AUTHORITES -> AUTHORITIES
shawntabrizi Feb 15, 2020
12b10e1
underyling -> underlying
shawntabrizi Feb 15, 2020
fdc7b63
recognisable -> recognizable
shawntabrizi Feb 15, 2020
ed3a1ff
Capitalise -> Capitalize
shawntabrizi Feb 15, 2020
88e6b6e
reportfor -> report for
shawntabrizi Feb 15, 2020
33d5610
hearbeat -> heartbeat
shawntabrizi Feb 15, 2020
f47cd35
onlineness -> being online
shawntabrizi Feb 15, 2020
5130cbb
creater -> creator
shawntabrizi Feb 15, 2020
59f917a
Bytearray -> Byte array
shawntabrizi Feb 15, 2020
d3878c2
Despoit -> Deposit
shawntabrizi Feb 15, 2020
46a1712
substratced -> subtracted
shawntabrizi Feb 15, 2020
6ed57d1
Curent -> Current
shawntabrizi Feb 15, 2020
4f9fd26
imbalanes -> imbalances
shawntabrizi Feb 15, 2020
3e22b6e
countfown -> countdown
shawntabrizi Feb 15, 2020
52a0c80
inexisting -> inexistent
shawntabrizi Feb 15, 2020
9fda56a
additionaly -> additionally
shawntabrizi Feb 15, 2020
347261f
substracted -> subtracted
shawntabrizi Feb 15, 2020
222d7de
auxilary -> auxiliary
shawntabrizi Feb 15, 2020
f09eb81
parital -> partial
shawntabrizi Feb 15, 2020
857271f
in't -> isn't
shawntabrizi Feb 15, 2020
92864a1
compatability -> compatibility
shawntabrizi Feb 15, 2020
a51701c
infomation -> information
shawntabrizi Feb 15, 2020
00649a1
etected -> detected
shawntabrizi Feb 15, 2020
45cda28
extrinsiscs -> extrinsics
shawntabrizi Feb 15, 2020
b03603f
reprensentation -> representation
shawntabrizi Feb 15, 2020
a4061bd
coonfiguration -> configuration
shawntabrizi Feb 15, 2020
3d6552f
primtives -> primitives
shawntabrizi Feb 15, 2020
be564c0
miscelanious -> miscellaneous
shawntabrizi Feb 15, 2020
3882146
VERISON -> VERSION
shawntabrizi Feb 15, 2020
0d9b625
endcoded -> encoded
shawntabrizi Feb 15, 2020
332989e
Genrates -> Generates
shawntabrizi Feb 15, 2020
a622c0c
miliseconds -> milliseconds
shawntabrizi Feb 15, 2020
00df8f3
occured -> occurred
shawntabrizi Feb 15, 2020
5aaef46
trully -> truely
shawntabrizi Feb 15, 2020
2f86051
truely -> truly
shawntabrizi Feb 15, 2020
845924c
conjuction -> conjunction
shawntabrizi Feb 15, 2020
a783d16
encouters -> encounters
shawntabrizi Feb 15, 2020
2be2cff
customised -> customized
shawntabrizi Feb 15, 2020
102e62a
deterministicly -> deterministically
shawntabrizi Feb 15, 2020
f526741
finalisation -> finalization
shawntabrizi Feb 15, 2020
f08db98
pluggable -> plugable
shawntabrizi Feb 15, 2020
30af30e
wakeup -> wake-up
shawntabrizi Feb 15, 2020
ef0b27d
interemdiate -> intermediate
shawntabrizi Feb 15, 2020
565965b
intepreting -> interpreting
shawntabrizi Feb 15, 2020
d9c4959
finalzied -> finalized
shawntabrizi Feb 15, 2020
08fbfa9
throgh -> through
shawntabrizi Feb 15, 2020
429000c
extinsic -> extrinsic
shawntabrizi Feb 15, 2020
212b5da
convient -> convenient
shawntabrizi Feb 15, 2020
527906a
allocater -> allocator
shawntabrizi Feb 15, 2020
676f876
propagateable -> propagatable
shawntabrizi Feb 15, 2020
a11a494
succesfuly -> successfully
shawntabrizi Feb 15, 2020
4a13854
finalising -> finalizing
shawntabrizi Feb 15, 2020
b5d21b7
publically -> publicly
shawntabrizi Feb 15, 2020
3052ba9
phrasee -> phrase
shawntabrizi Feb 15, 2020
d77a039
substration -> substractions
shawntabrizi Feb 15, 2020
3f82fb5
substractions -> subtractions
shawntabrizi Feb 15, 2020
dae22d2
neccessarily -> necessarily
shawntabrizi Feb 15, 2020
4547e64
Inlucde -> Include
shawntabrizi Feb 15, 2020
65fcffc
unefficient -> inefficient
shawntabrizi Feb 15, 2020
02fd8fa
thay -> they
shawntabrizi Feb 15, 2020
ca5fa46
funtion -> function
shawntabrizi Feb 15, 2020
819f95c
datastructures -> data structures
shawntabrizi Feb 15, 2020
e7460d9
infromation -> information
shawntabrizi Feb 15, 2020
805f725
propagatable -> propagable
shawntabrizi Feb 15, 2020
a3292c8
ecountered -> encountered
shawntabrizi Feb 15, 2020
86bb08b
recognise -> recognize
shawntabrizi Feb 15, 2020
d32388c
intergration -> integration
shawntabrizi Feb 15, 2020
e7d8bd5
lastet -> latest
shawntabrizi Feb 15, 2020
85d6cad
datatypes -> data types
shawntabrizi Feb 15, 2020
5856c53
datatype -> data type
shawntabrizi Feb 15, 2020
d1fc4ed
Strongarming -> Strong Arming
shawntabrizi Feb 15, 2020
0fe25fd
avaible -> available
shawntabrizi Feb 15, 2020
5dd8f4d
Commiting -> Committing
shawntabrizi Feb 15, 2020
5f23749
Retreiving -> Retrieving
shawntabrizi Feb 15, 2020
2240572
shoud -> should
shawntabrizi Feb 15, 2020
506ff47
canonicaliziation -> canonicalization
shawntabrizi Feb 15, 2020
e1bfcc6
comitted -> committed
shawntabrizi Feb 15, 2020
961e698
clonable -> cloneable
shawntabrizi Feb 15, 2020
1e0a5d0
Uknown -> Unknown
shawntabrizi Feb 15, 2020
9846852
reponse -> response
shawntabrizi Feb 15, 2020
da8c7ea
arbitary -> arbitrary
shawntabrizi Feb 15, 2020
a8727d1
Capapbilities -> Capabilities
shawntabrizi Feb 15, 2020
2dc2ae5
responsbile -> responsible
shawntabrizi Feb 15, 2020
706a3d3
initialisation -> initialization
shawntabrizi Feb 15, 2020
5ea172f
cames -> came
shawntabrizi Feb 15, 2020
d540056
intemediate -> intermediate
shawntabrizi Feb 15, 2020
0f7762d
reqeust -> request
shawntabrizi Feb 15, 2020
fa7ab6e
intance -> instance
shawntabrizi Feb 15, 2020
c780d04
explcitly -> explicitly
shawntabrizi Feb 15, 2020
48ab6d8
neighor -> neighbor
shawntabrizi Feb 15, 2020
8701bfd
reolving -> resolving
shawntabrizi Feb 15, 2020
5727580
untill -> until
shawntabrizi Feb 15, 2020
232ead4
Validte -> Validate
shawntabrizi Feb 15, 2020
53a5270
deserailize -> deserialize
shawntabrizi Feb 15, 2020
ae4a295
literaly -> literally
shawntabrizi Feb 15, 2020
b4fd7b5
preceeding -> preceding
shawntabrizi Feb 15, 2020
9a7f6de
abpve -> above
shawntabrizi Feb 15, 2020
4775fcc
chcecked -> checked
shawntabrizi Feb 15, 2020
6ea6619
numbet -> number
shawntabrizi Feb 15, 2020
d58c904
Unknow -> Unknown
shawntabrizi Feb 15, 2020
ce2c5f4
halfs -> halves
shawntabrizi Feb 15, 2020
374ad37
gossup -> gossip
shawntabrizi Feb 15, 2020
1054076
givent -> given
shawntabrizi Feb 15, 2020
96a59c7
immediatelly -> immediately
shawntabrizi Feb 15, 2020
5d04ab4
slicable -> sliceable
shawntabrizi Feb 15, 2020
21b31ba
conensus -> consensus
shawntabrizi Feb 15, 2020
afedbf4
Mimicks -> Mimics
shawntabrizi Feb 15, 2020
9de155d
acccept -> accept
shawntabrizi Feb 15, 2020
b4a5948
serialise -> serialize
shawntabrizi Feb 15, 2020
9c3f21a
exstrinsics -> extrinsics
shawntabrizi Feb 15, 2020
5436b56
panicks -> panics
shawntabrizi Feb 15, 2020
9fa2108
maintaince -> maintenance
shawntabrizi Feb 15, 2020
a0c2c36
repeatidely -> repeatedly
shawntabrizi Feb 15, 2020
bae0601
anecstor -> ancestor
shawntabrizi Feb 15, 2020
a2f1d25
becasue -> because
shawntabrizi Feb 15, 2020
fb62813
processer -> processor
shawntabrizi Feb 15, 2020
483d4d7
Prunning -> Pruning
shawntabrizi Feb 15, 2020
edc7587
insterested -> interested
shawntabrizi Feb 15, 2020
a7ddd92
unuseful -> not useful
shawntabrizi Feb 15, 2020
a21dab9
yeided -> yielded
shawntabrizi Feb 15, 2020
ba54086
descendfing -> descending
shawntabrizi Feb 15, 2020
1968060
corresponts -> corresponds
shawntabrizi Feb 15, 2020
15a59e1
survivew -> survive
shawntabrizi Feb 15, 2020
b2af247
keps -> keeps
shawntabrizi Feb 15, 2020
c073b10
ligh -> light
shawntabrizi Feb 15, 2020
8378f52
prerequisities -> prerequisites
shawntabrizi Feb 15, 2020
54408c5
positiion -> position
shawntabrizi Feb 15, 2020
dff7f68
depedency -> dependency
shawntabrizi Feb 15, 2020
1ae3688
extrinisic -> extrinsic
shawntabrizi Feb 15, 2020
908879d
atomicaly -> atomically
shawntabrizi Feb 15, 2020
3409cfa
staticly -> statically
shawntabrizi Feb 15, 2020
055361d
resul -> result
shawntabrizi Feb 15, 2020
fc8ba3a
timestamb -> timestamp
shawntabrizi Feb 15, 2020
9408907
Utilites -> Utilities
shawntabrizi Feb 15, 2020
b31265b
ammount -> amount
shawntabrizi Feb 15, 2020
4994684
pocess -> process
shawntabrizi Feb 15, 2020
579b91d
exteral -> external
shawntabrizi Feb 15, 2020
fdee855
Update client/finality-grandpa/src/tests.rs
shawntabrizi Feb 15, 2020
a59d926
Update primitives/io/src/lib.rs
shawntabrizi Feb 15, 2020
eece550
Update primitives/blockchain/src/lib.rs
shawntabrizi Feb 15, 2020
632be0b
Update frame/support/src/weights.rs
shawntabrizi Feb 15, 2020
fcb3cec
Update bin/node/cli/tests/common.rs
shawntabrizi Feb 15, 2020
fcf26d1
Update client/api/src/execution_extensions.rs
shawntabrizi Feb 15, 2020
ad1d851
Update client/cli/src/params.rs
shawntabrizi Feb 15, 2020
49a1512
Update client/executor/common/src/sandbox.rs
shawntabrizi Feb 15, 2020
95a0f26
Update client/api/src/execution_extensions.rs
shawntabrizi Feb 15, 2020
f0cc1ec
Update client/finality-grandpa/src/communication/mod.rs
shawntabrizi Feb 15, 2020
2fc2704
Update client/state-db/src/pruning.rs
shawntabrizi Feb 15, 2020
25c7499
Update frame/contracts/src/tests.rs
shawntabrizi Feb 15, 2020
4f756f5
Update client/api/src/execution_extensions.rs
shawntabrizi Feb 15, 2020
3817bd7
bump impl
shawntabrizi Feb 17, 2020
2f55568
Merge remote-tracking branch 'upstream/master' into shawntabrizi-spel…
shawntabrizi Feb 17, 2020
64540b0
timestamb -> timestamp
shawntabrizi Feb 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .maintain/kubernetes/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
app: {{ .Values.GitlabEnvSlug | default .Values.app }}
sessionAffinity: None
type: NodePort
# don't route exteral traffic to non-local pods
# don't route external traffic to non-local pods
externalTrafficPolicy: Local
{{- else if .Values.validator.keys }}
{{- $root := . -}}
Expand Down
2 changes: 1 addition & 1 deletion .maintain/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ validator: {}
# substrate-1-node-key <node-secret-key>
#
# pod names are canonical. changing these or providing different amount of
# keys than the replicas count will lead to behavior noone ever has
# keys than the replicas count will lead to behavior no one ever has
# experienced before.


Expand Down
2 changes: 1 addition & 1 deletion bin/node-template/pallets/template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ decl_event!(
pub enum Event<T> where AccountId = <T as system::Trait>::AccountId {
/// Just a dummy event.
/// Event `Something` is declared with a parameter of the type `u32` and `AccountId`
/// To emit this event, we call the deposit funtion, from our runtime funtions
/// To emit this event, we call the deposit function, from our runtime functions
SomethingStored(u32, AccountId),
}
);
Expand Down
2 changes: 1 addition & 1 deletion bin/node-template/pallets/template/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use frame_support::{assert_ok, assert_noop};
#[test]
fn it_works_for_default_value() {
new_test_ext().execute_with(|| {
// Just a dummy test for the dummy funtion `do_something`
// Just a dummy test for the dummy function `do_something`
// calling the `do_something` function with a value 42
assert_ok!(TemplateModule::do_something(Origin::signed(1), 42));
// asserting that the stored value is equal to what we stored
Expand Down
4 changes: 2 additions & 2 deletions bin/node-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub type DigestItem = generic::DigestItem<Hash>;
/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
/// the specifics of the runtime. They can then be made to be agnostic over specific formats
/// of data like extrinsics, allowing for them to continue syncing the network through upgrades
/// to even the core datastructures.
/// to even the core data structures.
pub mod opaque {
use super::*;

Expand Down Expand Up @@ -109,7 +109,7 @@ pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
pub const HOURS: BlockNumber = MINUTES * 60;
pub const DAYS: BlockNumber = HOURS * 24;

/// The version infromation used to identify this runtime when compiled natively.
/// The version information used to identify this runtime when compiled natively.
#[cfg(feature = "std")]
pub fn native_version() -> NativeVersion {
NativeVersion {
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use std::{process::{Child, ExitStatus}, thread, time::Duration};

/// Wait for the given `child` the given ammount of `secs`.
/// Wait for the given `child` the given number of `secs`.
///
/// Returns the `Some(exit status)` or `None` if the process did not finish in the given time.
pub fn wait_for(child: &mut Child, secs: usize) -> Option<ExitStatus> {
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/tests/running_the_node_and_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn running_the_node_works_and_can_be_interrupted() {
assert_eq!(
common::wait_for(&mut cmd, 30).map(|x| x.success()),
Some(true),
"the pocess must exit gracefully after signal {}",
"the process must exit gracefully after signal {}",
signal,
);
}
Expand Down
4 changes: 2 additions & 2 deletions bin/node/rpc-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Example substrate RPC client code.
//!
//! This module shows how you can write a Rust RPC client that connects to a running
//! substrate node and use staticly typed RPC wrappers.
//! substrate node and use statically typed RPC wrappers.

use futures::Future;
use hyper::rt;
Expand Down Expand Up @@ -55,7 +55,7 @@ fn main() {
/// 1. Calls the `pending_extrinsics` method to get all extrinsics in the pool.
/// 2. Then calls `remove_extrinsic` passing the obtained raw extrinsics.
///
/// As the resul of running the code the entire content of the transaction pool is going
/// As the result of running the code the entire content of the transaction pool is going
/// to be removed and the extrinsics are going to be temporarily banned.
fn remove_all_extrinsics(client: AuthorClient<Hash, Hash>) -> impl Future<Item=(), Error=RpcError> {
client.pending_extrinsics()
Expand Down
4 changes: 2 additions & 2 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 219,
impl_version: 0,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
};

Expand Down Expand Up @@ -419,7 +419,7 @@ impl pallet_contracts::Trait for Runtime {
type Randomness = RandomnessCollectiveFlip;
type Call = Call;
type Event = Event;
type DetermineContractAddress = pallet_contracts::SimpleAddressDeterminator<Runtime>;
type DetermineContractAddress = pallet_contracts::SimpleAddressDeterminer<Runtime>;
type ComputeDispatchFee = pallet_contracts::DefaultDispatchFeeComputor<Runtime>;
type TrieIdGenerator = pallet_contracts::TrieIdFromParentCounter<Runtime>;
type GasPayment = ();
Expand Down
2 changes: 1 addition & 1 deletion bin/node/testing/benches/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl BenchDb {

let mut inherent_data = InherentData::new();
inherent_data.put_data(sp_timestamp::INHERENT_IDENTIFIER, &timestamp)
.expect("Put timestamb failed");
.expect("Put timestamp failed");
inherent_data.put_data(sp_finality_tracker::INHERENT_IDENTIFIER, &0)
.expect("Put finality tracker failed");

Expand Down
2 changes: 1 addition & 1 deletion bin/node/testing/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.

//! Utilites to build a `TestClient` for `node-runtime`.
//! Utilities to build a `TestClient` for `node-runtime`.

use sp_runtime::BuildStorage;

Expand Down
4 changes: 2 additions & 2 deletions bin/utils/subkey/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn get_app<'a, 'b>(usage: &'a str) -> App<'a, 'b> {
SubCommand::with_name("transfer")
.about("Author and sign a Node pallet_balances::Transfer transaction with a given (secret) key")
.args_from_usage("
<genesis> -g, --genesis <genesis> 'The genesis hash or a recognised \
<genesis> -g, --genesis <genesis> 'The genesis hash or a recognized \
chain identifier (dev, elm, alex).'
<from> 'The signing secret key URI.'
<to> 'The destination account public key URI.'
Expand Down Expand Up @@ -572,7 +572,7 @@ fn read_genesis_hash(matches: &ArgMatches) -> Result<H256, Error> {
"elm" => hex!["10c08714a10c7da78f40a60f6f732cf0dba97acfb5e2035445b032386157d5c3"].into(),
"alex" => hex!["dcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b"].into(),
h => Decode::decode(&mut &decode_hex(h)?[..])
.expect("Invalid genesis hash or unrecognised chain identifier"),
.expect("Invalid genesis hash or unrecognized chain identifier"),
};
println!(
"Using a genesis hash of {}",
Expand Down
6 changes: 3 additions & 3 deletions client/api/src/execution_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Default for ExecutionStrategies {

/// Generate the starting set of ExternalitiesExtensions based upon the given capabilities
pub trait ExtensionsFactory: Send + Sync {
/// Make `Extensions` for given Capapbilities
/// Make `Extensions` for given `Capabilities`.
fn extensions_for(&self, capabilities: offchain::Capabilities) -> Extensions;
}

Expand All @@ -77,7 +77,7 @@ impl ExtensionsFactory for () {
/// A producer of execution extensions for offchain calls.
///
/// This crate aggregates extensions available for the offchain calls
/// and is responsbile to produce a right `Extensions` object
/// and is responsible for producing a correct `Extensions` object.
/// for each call, based on required `Capabilities`.
pub struct ExecutionExtensions<Block: traits::Block> {
strategies: ExecutionStrategies,
Expand Down Expand Up @@ -125,7 +125,7 @@ impl<Block: traits::Block> ExecutionExtensions<Block> {
/// To break retain cycle between `Client` and `TransactionPool` we require this
/// extension to be a `Weak` reference.
/// That's also the reason why it's being registered lazily instead of
/// during initialisation.
/// during initialization.
pub fn register_transaction_pool(&self, pool: Weak<dyn sp_transaction_pool::OffchainSubmitTransaction<Block>>) {
*self.transaction_pool.write() = Some(pool);
}
Expand Down
2 changes: 1 addition & 1 deletion client/chain-spec/derive/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn derive(
let err = || {
let err = Error::new(
Span::call_site(),
"ChainSpecGroup is only avaible for structs with named fields."
"ChainSpecGroup is only available for structs with named fields."
).to_compile_error();
quote!( #err ).into()
};
Expand Down
2 changes: 1 addition & 1 deletion client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ mod tests {
type TestSpec = ChainSpec<Genesis>;

#[test]
fn should_deserailize_example_chain_spec() {
fn should_deserialize_example_chain_spec() {
let spec1 = TestSpec::from_json_bytes(Cow::Owned(
include_bytes!("../res/chain_spec.json").to_vec()
)).unwrap();
Expand Down
5 changes: 2 additions & 3 deletions client/cli/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ pub struct BuildSpecCmd {
pub node_key_params: NodeKeyParams,
}

/// Wrapper type of `String` which holds an arbitary sized unsigned integer formatted as decimal.
/// Wrapper type of `String` that holds an unsigned integer of arbitrary size, formatted as a decimal.
#[derive(Debug, Clone)]
pub struct BlockNumber(String);

Expand Down Expand Up @@ -908,7 +908,7 @@ pub enum Subcommand {
/// Import blocks from file.
ImportBlocks(ImportBlocksCmd),

/// Validte a single block.
/// Validate a single block.
CheckBlock(CheckBlockCmd),

/// Revert chain to the previous state.
Expand Down Expand Up @@ -1266,4 +1266,3 @@ impl BenchmarkCmd {
Ok(())
}
}

4 changes: 2 additions & 2 deletions client/consensus/babe/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ impl TestNetFactory for BabeTestNet {
}

fn peer(&mut self, i: usize) -> &mut Peer<Self::PeerData, DummySpecialization> {
trace!(target: "babe", "Retreiving a peer");
trace!(target: "babe", "Retrieving a peer");
&mut self.peers[i]
}

fn peers(&self) -> &Vec<Peer<Self::PeerData, DummySpecialization>> {
trace!(target: "babe", "Retreiving peers");
trace!(target: "babe", "Retrieving peers");
&self.peers
}

Expand Down
2 changes: 1 addition & 1 deletion client/consensus/epochs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<Epoch> ViableEpoch<Epoch> where
}
}

/// The datatype encoded on disk.
/// The data type encoded on disk.
#[derive(Clone, Encode, Decode)]
pub enum PersistedEpoch<Epoch> {
/// Genesis persisted epoch data. epoch_0, epoch_1.
Expand Down
2 changes: 1 addition & 1 deletion client/db/src/cache/list_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl<Block: BlockT, T: CacheItemT, S: Storage<Block, T>> ListCache<Block, T, S>
// it is possible that we're inserting extra (but still required) fork here
let new_storage_entry = StorageEntry {
prev_valid_from: Some(prev_valid_from),
value: value.expect("chcecked abpve that !value.is_none(); qed"),
value: value.expect("checked above that !value.is_none(); qed"),
};

tx.insert_storage_entry(&block, &new_storage_entry);
Expand Down
2 changes: 1 addition & 1 deletion client/db/src/cache/list_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl<Block: BlockT, T: CacheItemT> Entry<Block, T> {
.map(|(entry, next)| (entry.valid_from, next)))
}

/// Searches the list, ending with THIS entry for the best entry preceeding (or at)
/// Searches the list, ending with THIS entry for the best entry preceding (or at)
/// given block number.
/// If the entry is found, result is the entry and the block id of next entry (if exists).
/// NOTE that this function does not check that the passed block is actually linked to
Expand Down
2 changes: 1 addition & 1 deletion client/db/src/changes_tries_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn extract_new_configuration<Header: HeaderT>(header: &Header) -> Option<&Op
/// Opaque configuration cache transaction. During its lifetime, no-one should modify cache. This is currently
/// guaranteed because import lock is held during block import/finalization.
pub struct DbChangesTrieStorageTransaction<Block: BlockT> {
/// Cache operations that must be performed after db transaction is comitted.
/// Cache operations that must be performed after db transaction is committed.
cache_ops: DbCacheTransactionOps<Block>,
/// New configuration (if changed at current block).
new_config: Option<Option<ChangesTrieConfiguration>>,
Expand Down
4 changes: 2 additions & 2 deletions client/db/src/children.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ mod tests {
children2.push(1_6);
write_children(&mut tx, 0, PREFIX, 1_2, children2);

db.write(tx.clone()).expect("(2) Commiting transaction failed");
db.write(tx.clone()).expect("(2) Committing transaction failed");

let r1: Vec<u32> = read_children(&db, 0, PREFIX, 1_1).expect("(1) Getting r1 failed");
let r2: Vec<u32> = read_children(&db, 0, PREFIX, 1_2).expect("(1) Getting r2 failed");
Expand All @@ -109,7 +109,7 @@ mod tests {
assert_eq!(r2, vec![1_4, 1_6]);

remove_children(&mut tx, 0, PREFIX, 1_2);
db.write(tx).expect("(2) Commiting transaction failed");
db.write(tx).expect("(2) Committing transaction failed");

let r1: Vec<u32> = read_children(&db, 0, PREFIX, 1_1).expect("(2) Getting r1 failed");
let r2: Vec<u32> = read_children(&db, 0, PREFIX, 1_2).expect("(2) Getting r2 failed");
Expand Down
6 changes: 3 additions & 3 deletions client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ impl<T: Clone> FrozenForDuration<T> {

/// Disk backend.
///
/// Disk backend keps data in a key-value store. In archive mode, trie nodes are kept from all blocks.
/// Disk backend keeps data in a key-value store. In archive mode, trie nodes are kept from all blocks.
/// Otherwise, trie nodes are kept only from some recent blocks.
pub struct Backend<Block: BlockT> {
storage: Arc<StorageDb<Block>>,
Expand Down Expand Up @@ -878,7 +878,7 @@ impl<Block: BlockT> Backend<Block> {
inmem
}

/// Returns total numbet of blocks (headers) in the block DB.
/// Returns total number of blocks (headers) in the block DB.
#[cfg(feature = "test-helpers")]
pub fn blocks_count(&self) -> u64 {
self.blockchain.db.iter(columns::HEADER).count() as u64
Expand Down Expand Up @@ -1000,7 +1000,7 @@ impl<Block: BlockT> Backend<Block> {
Ok((*hash, number, false, true))
}

// performs forced canonicaliziation with a delay after importing a non-finalized block.
// performs forced canonicalization with a delay after importing a non-finalized block.
fn force_delayed_canonicalize(
&self,
transaction: &mut DBTransaction,
Expand Down
2 changes: 1 addition & 1 deletion client/db/src/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ pub(crate) mod tests {
}

#[test]
fn get_cht_fails_for_non_existant_cht() {
fn get_cht_fails_for_non_existent_cht() {
let cht_size: u64 = cht::size();
assert!(LightStorage::<Block>::new_test().header_cht_root(cht_size, cht_size / 2).unwrap().is_none());
}
Expand Down
4 changes: 2 additions & 2 deletions client/db/src/storage_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl<B: BlockT> CacheChanges<B> {
is_best,
);
let cache = &mut *cache;
// Filter out commiting block if any.
// Filter out committing block if any.
let enacted: Vec<_> = enacted
.iter()
.filter(|h| commit_hash.as_ref().map_or(true, |p| *h != p))
Expand Down Expand Up @@ -1453,7 +1453,7 @@ mod qc {

self.head_state(
self.canon.last()
.expect("wasn't forking to emptiness so there shoud be one!")
.expect("wasn't forking to emptiness so there should be one!")
.hash
)
},
Expand Down
2 changes: 1 addition & 1 deletion client/db/src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn current_version(path: &Path) -> sp_blockchain::Result<u32> {
}
}

/// Opens database of givent type with given number of columns.
/// Opens database of given type with given number of columns.
fn open_database(db_path: &Path, db_type: DatabaseType, db_columns: u32) -> sp_blockchain::Result<Database> {
let db_path = db_path.to_str()
.ok_or_else(|| sp_blockchain::Error::Backend("Invalid database path".into()))?;
Expand Down
2 changes: 1 addition & 1 deletion client/executor/common/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub type Result<T> = std::result::Result<T, Error>;
pub enum Error {
/// Unserializable Data
InvalidData(sp_serializer::Error),
/// Trap occured during execution
/// Trap occurred during execution
Trap(wasmi::Trap),
/// Wasmi loading/instantiating error
Wasmi(wasmi::Error),
Expand Down
2 changes: 1 addition & 1 deletion client/executor/common/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub fn instantiate<'a, FE: SandboxCapabilities>(
///
/// This is generic over a supervisor function reference type.
pub struct Store<FR> {
// Memories and instances are `Some` untill torndown.
// Memories and instances are `Some` until torn down.
instances: Vec<Option<Rc<SandboxInstance<FR>>>>,
memories: Vec<Option<MemoryRef>>,
}
Expand Down
2 changes: 1 addition & 1 deletion client/executor/wasmi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ struct Resolver<'a> {
/// Will be used as initial and maximum size of the imported memory.
heap_pages: usize,
/// By default, runtimes should import memory and this is `Some(_)` after
/// reolving. However, to be backwards compatible, we also support memory
/// resolving. However, to be backwards compatible, we also support memory
/// exported by the WASM blob (this will be `None` after resolving).
import_memory: RefCell<Option<MemoryRef>>,
}
Expand Down
4 changes: 2 additions & 2 deletions client/executor/wasmtime/src/instance_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use wasmtime::{Instance, Module, Memory, Table, Val};
/// routines.
pub struct InstanceWrapper {
instance: Instance,
// The memory instance of the `intance`.
// The memory instance of the `instance`.
//
// It is important to make sure that we don't make any copies of this to make it easier to proof
// See `memory_as_slice` and `memory_as_slice_mut`.
Expand Down Expand Up @@ -142,7 +142,7 @@ impl InstanceWrapper {
Val::I64(val) => Ok(Some(Value::I64(val))),
Val::F32(val) => Ok(Some(Value::F32(val))),
Val::F64(val) => Ok(Some(Value::F64(val))),
_ => Err("Unknow value type".into()),
_ => Err("Unknown value type".into()),
}
}
}
Expand Down
Loading