Skip to content

Commit

Permalink
add tests for find_potential_parents (#1338)
Browse files Browse the repository at this point in the history
(would have closed) paritytech/cumulus#2831
  • Loading branch information
slumber authored Sep 12, 2023
1 parent e005aef commit 730edeb
Show file tree
Hide file tree
Showing 2 changed files with 553 additions and 23 deletions.
2 changes: 2 additions & 0 deletions cumulus/client/consensus/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ pub trait ParachainBlockImportMarker {}
impl<B: BlockT, BI, BE> ParachainBlockImportMarker for ParachainBlockImport<B, BI, BE> {}

/// Parameters when searching for suitable parents to build on top of.
#[derive(Debug)]
pub struct ParentSearchParams {
/// The relay-parent that is intended to be used.
pub relay_parent: PHash,
Expand All @@ -228,6 +229,7 @@ pub struct ParentSearchParams {
}

/// A potential parent block returned from [`find_potential_parents`]
#[derive(Debug, PartialEq)]
pub struct PotentialParent<B: BlockT> {
/// The hash of the block.
pub hash: B::Hash,
Expand Down
Loading

0 comments on commit 730edeb

Please sign in to comment.