From 313288208dddf9cb34d9e034e121d56b2dfc7a28 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Thu, 30 Apr 2020 11:07:25 -0400 Subject: [PATCH] Update docs for BeforeBestBlockBy (#5849) --- substrate/client/finality-grandpa/src/voting_rule.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/substrate/client/finality-grandpa/src/voting_rule.rs b/substrate/client/finality-grandpa/src/voting_rule.rs index 523a1b05cd..bcf17039a8 100644 --- a/substrate/client/finality-grandpa/src/voting_rule.rs +++ b/substrate/client/finality-grandpa/src/voting_rule.rs @@ -68,7 +68,8 @@ impl VotingRule for () where } /// A custom voting rule that guarantees that our vote is always behind the best -/// block, in the best case exactly one block behind it. +/// block by at least N blocks. In the best case our vote is exactly N blocks +/// behind the best block. #[derive(Clone)] pub struct BeforeBestBlockBy(N); impl VotingRule for BeforeBestBlockBy> where