Skip to content

Commit

Permalink
Extend ImportQueueService::import_blocks comment to clarify importa…
Browse files Browse the repository at this point in the history
…nt assumptions about blocks list
  • Loading branch information
nazar-pc committed Jun 20, 2024
1 parent 713eb55 commit 67a7b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion substrate/client/consensus/common/src/import_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ pub trait Verifier<B: BlockT>: Send {
///
/// The `import_*` methods can be called in order to send elements for the import queue to verify.
pub trait ImportQueueService<B: BlockT>: Send {
/// Import bunch of blocks.
/// Import bunch of blocks, every next block must be an ancestor of the previous block in the
/// list.
fn import_blocks(&mut self, origin: BlockOrigin, blocks: Vec<IncomingBlock<B>>);

/// Import block justifications.
Expand Down

0 comments on commit 67a7b6c

Please sign in to comment.