Versioned NextConfigDescriptor for BABE (#5789)

This commit is contained in:
Wei Tang
2020-04-28 12:50:40 +02:00
committed by GitHub
parent 99ad328419
commit 7784bdeffe
2 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1065,7 +1065,7 @@ impl<Block, Client, Inner> BlockImport<Block> for BabeBlockImport<Block, Client,
ConsensusError::ClientImport(Error::<Block>::FetchEpoch(parent_hash).into())
})?;
let epoch_config = next_config_digest.unwrap_or_else(
let epoch_config = next_config_digest.map(Into::into).unwrap_or_else(
|| viable_epoch.as_ref().config.clone()
);