diff --git a/polkadot/consensus/src/lib.rs b/polkadot/consensus/src/lib.rs index 4ad6ba9544..4aee785def 100644 --- a/polkadot/consensus/src/lib.rs +++ b/polkadot/consensus/src/lib.rs @@ -256,6 +256,8 @@ impl bft::Environment for ProposerFactory authorities: &[AuthorityId], sign_with: Arc ) -> Result<(Self::Proposer, Self::Input, Self::Output), Error> { + use runtime_primitives::traits::{Hash as HashT, BlakeTwo256}; + const DELAY_UNTIL: Duration = Duration::from_millis(5000); let parent_hash = parent_header.hash().into(); @@ -263,6 +265,7 @@ impl bft::Environment for ProposerFactory let id = BlockId::hash(parent_hash); let duty_roster = self.client.duty_roster(&id)?; let random_seed = self.client.random_seed(&id)?; + let random_seed = BlakeTwo256::hash(&*random_seed); let (group_info, local_duty) = make_group_info( duty_roster,