mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 13:08:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user