From 66dafbcb0b71b3a126d88fd3a1f1ae47acccee59 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Sun, 28 Oct 2018 18:45:42 +0100 Subject: [PATCH] minimize public interface --- substrate/core/finality-grandpa/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/substrate/core/finality-grandpa/src/lib.rs b/substrate/core/finality-grandpa/src/lib.rs index 988a13d74d..fde673eb5a 100644 --- a/substrate/core/finality-grandpa/src/lib.rs +++ b/substrate/core/finality-grandpa/src/lib.rs @@ -155,7 +155,7 @@ impl BlockStatus for Arc> where } /// Buffering imported messages until blocks with given hashes are imported. -pub struct UntilImported { +struct UntilImported { import_notifications: Fuse>, status_check: Status, inner: Fuse, @@ -417,7 +417,7 @@ fn outgoing_messages( } /// The environment we run GRANDPA in. -pub struct Environment { +struct Environment { inner: Arc>, voters: Arc>, config: Config, @@ -507,7 +507,7 @@ pub trait CompatibleDigestItem { /// A new authority set along with the canonical block it changed at. #[derive(Debug)] -pub struct NewAuthoritySet { +struct NewAuthoritySet { canon_number: N, canon_hash: H, set_id: u64, @@ -516,7 +516,7 @@ pub struct NewAuthoritySet { /// Signals either an early exit of a voter or an error. #[derive(Debug)] -pub enum ExitOrError { +enum ExitOrError { /// An error occurred. Error(Error), /// Early exit of the voter: the new set ID and the new authorities along with respective weights.