Versioned NextConfigDescriptor for BABE (#5789)

This commit is contained in:
Wei Tang authored and GitHub committed 2020-04-28 11:50:40 +01:00
1 parent 99ad328419
commit 7784bdeffe
2 files changed
+22 -3

No files matched your search

+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()
);