Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
80796024
Commit
80796024
authored
Jun 16, 2019
by
Black3HDF
Committed by
Bastian Köcher
Jun 16, 2019
Browse files
fix typos (#291)
parent
da22340c
Pipeline
#40551
passed with stages
in 17 minutes and 31 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
erasure-coding/src/lib.rs
View file @
80796024
...
...
@@ -21,7 +21,7 @@
//! and constructing a merkle root of the data.
//!
//! Each of n validators stores their piece of data. We assume n=3f+k, k < 3.
//! f is the maximum number of faulty va
i
ldators in the system.
//! f is the maximum number of faulty val
i
dators in the system.
//! The data is coded so any f+1 chunks can be used to reconstruct the full data.
use
parity_codec
::{
Encode
,
Decode
};
...
...
@@ -264,7 +264,7 @@ pub fn branches<'a>(chunks: Vec<&'a [u8]>) -> Branches<'a> {
}
}
/// Verify a m
a
rkle branch, yielding the chunk hash meant to be present at that
/// Verify a m
e
rkle branch, yielding the chunk hash meant to be present at that
/// index.
pub
fn
branch_hash
(
root
:
&
H256
,
branch_nodes
:
&
[
Vec
<
u8
>
],
index
:
usize
)
->
Result
<
H256
,
Error
>
{
let
mut
trie_storage
:
MemoryDB
<
Blake2Hasher
>
=
MemoryDB
::
default
();
...
...
primitives/src/lib.rs
View file @
80796024
...
...
@@ -53,7 +53,7 @@ pub type AccountId = <Signature as Verify>::Signer;
/// never know...
pub
type
AccountIndex
=
u32
;
/// I
n
dentifier for a chain. 32-bit should be plenty.
/// Identifier for a chain. 32-bit should be plenty.
pub
type
ChainId
=
u32
;
/// A hash of some data used by the relay chain.
...
...
runtime/src/claims.rs
View file @
80796024
...
...
@@ -191,7 +191,7 @@ mod tests {
use
substrate_primitives
::{
H256
,
Blake2Hasher
};
use
parity_codec
::{
Decode
,
Encode
};
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are requ
r
ied.
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are requi
r
ed.
use
sr_primitives
::{
BuildStorage
,
traits
::{
BlakeTwo256
,
IdentityLookup
},
testing
::{
Digest
,
DigestItem
,
Header
}
};
...
...
statement-table/src/generic.rs
View file @
80796024
...
...
@@ -93,7 +93,7 @@ pub struct SignedStatement<C, D, V, S> {
/// three possible combinations (unordered)
#[derive(PartialEq,
Eq,
Debug,
Clone)]
pub
enum
ValidityDoubleVote
<
C
,
D
,
S
>
{
/// Implicit vote by issuing and explicity voting validity.
/// Implicit vote by issuing and explicit
l
y voting validity.
IssuedAndValidity
((
C
,
S
),
(
D
,
S
)),
/// Implicit vote by issuing and explicitly voting invalidity
IssuedAndInvalidity
((
C
,
S
),
(
D
,
S
)),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment