Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
66dafbcb
Commit
66dafbcb
authored
6 years ago
by
asynchronous rob
Browse files
Options
Downloads
Patches
Plain Diff
minimize public interface
parent
ab6c343a
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/core/finality-grandpa/src/lib.rs
+4
-4
4 additions, 4 deletions
substrate/core/finality-grandpa/src/lib.rs
with
4 additions
and
4 deletions
substrate/core/finality-grandpa/src/lib.rs
+
4
−
4
View file @
66dafbcb
...
@@ -155,7 +155,7 @@ impl<B, E, Block: BlockT> BlockStatus<Block> for Arc<Client<B, E, Block>> where
...
@@ -155,7 +155,7 @@ impl<B, E, Block: BlockT> BlockStatus<Block> for Arc<Client<B, E, Block>> where
}
}
/// Buffering imported messages until blocks with given hashes are imported.
/// Buffering imported messages until blocks with given hashes are imported.
pub
struct
UntilImported
<
Block
:
BlockT
,
Status
,
I
>
{
struct
UntilImported
<
Block
:
BlockT
,
Status
,
I
>
{
import_notifications
:
Fuse
<
ImportNotifications
<
Block
>>
,
import_notifications
:
Fuse
<
ImportNotifications
<
Block
>>
,
status_check
:
Status
,
status_check
:
Status
,
inner
:
Fuse
<
I
>
,
inner
:
Fuse
<
I
>
,
...
@@ -417,7 +417,7 @@ fn outgoing_messages<Block: BlockT, N: Network>(
...
@@ -417,7 +417,7 @@ fn outgoing_messages<Block: BlockT, N: Network>(
}
}
/// The environment we run GRANDPA in.
/// The environment we run GRANDPA in.
pub
struct
Environment
<
B
,
E
,
Block
:
BlockT
,
N
:
Network
>
{
struct
Environment
<
B
,
E
,
Block
:
BlockT
,
N
:
Network
>
{
inner
:
Arc
<
Client
<
B
,
E
,
Block
>>
,
inner
:
Arc
<
Client
<
B
,
E
,
Block
>>
,
voters
:
Arc
<
HashMap
<
AuthorityId
,
u64
>>
,
voters
:
Arc
<
HashMap
<
AuthorityId
,
u64
>>
,
config
:
Config
,
config
:
Config
,
...
@@ -507,7 +507,7 @@ pub trait CompatibleDigestItem<N> {
...
@@ -507,7 +507,7 @@ pub trait CompatibleDigestItem<N> {
/// A new authority set along with the canonical block it changed at.
/// A new authority set along with the canonical block it changed at.
#[derive(Debug)]
#[derive(Debug)]
pub
struct
NewAuthoritySet
<
H
,
N
>
{
struct
NewAuthoritySet
<
H
,
N
>
{
canon_number
:
N
,
canon_number
:
N
,
canon_hash
:
H
,
canon_hash
:
H
,
set_id
:
u64
,
set_id
:
u64
,
...
@@ -516,7 +516,7 @@ pub struct NewAuthoritySet<H, N> {
...
@@ -516,7 +516,7 @@ pub struct NewAuthoritySet<H, N> {
/// Signals either an early exit of a voter or an error.
/// Signals either an early exit of a voter or an error.
#[derive(Debug)]
#[derive(Debug)]
pub
enum
ExitOrError
<
H
,
N
>
{
enum
ExitOrError
<
H
,
N
>
{
/// An error occurred.
/// An error occurred.
Error
(
Error
),
Error
(
Error
),
/// Early exit of the voter: the new set ID and the new authorities along with respective weights.
/// Early exit of the voter: the new set ID and the new authorities along with respective weights.
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment