Skip to content

Commit

Permalink
Fix documentation about justification and finalized == true require…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
nazar-pc committed Sep 18, 2023
1 parent cf5c195 commit 7234aeb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions substrate/client/service/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down Expand Up @@ -1745,8 +1744,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
Expand Down

0 comments on commit 7234aeb

Please sign in to comment.