expose grandpa BeforeBestBlockBy voting rule (#11798)

This commit is contained in:
Andronik
2022-07-08 14:27:58 +02:00
committed by GitHub
parent 27b538222e
commit c9fd6b8e65
@@ -89,7 +89,7 @@ where
/// can prioritize shorter chains over longer ones, the vote may be
/// closer to the best block than N.
#[derive(Clone)]
pub struct BeforeBestBlockBy<N>(N);
pub struct BeforeBestBlockBy<N>(pub N);
impl<Block, B> VotingRule<Block, B> for BeforeBestBlockBy<NumberFor<Block>>
where
Block: BlockT,