Fix documentation about justification and finalized == true requirement (#1607)

I was reading source code and noticed these two places that are no
longer true after https://github.com/paritytech/polkadot-sdk/pull/1211
This commit is contained in:
Nazar Mokrynskyi
2023-09-25 13:56:43 +03:00
committed by GitHub
parent b5fcdff9f5
commit c0a4ce1fc8
@@ -484,8 +484,7 @@ where
CallExecutor::runtime_version(&self.executor, hash)
}
/// Apply a checked and validated block to an operation. If a justification is provided
/// then `finalized` *must* be true.
/// Apply a checked and validated block to an operation.
fn apply_block(
&self,
operation: &mut ClientImportOperation<Block, B>,
@@ -1766,8 +1765,7 @@ where
{
type Error = ConsensusError;
/// Import a checked and validated block. If a justification is provided in
/// `BlockImportParams` then `finalized` *must* be true.
/// Import a checked and validated block.
///
/// NOTE: only use this implementation when there are NO consensus-level BlockImport
/// objects. Otherwise, importing blocks directly into the client would be bypassing