Skip to content

Commit

Permalink
add tests for find_potential_parents
Browse files Browse the repository at this point in the history
  • Loading branch information
slumber committed Aug 31, 2023
1 parent dcda0e5 commit 2c639c8
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 2c639c8

Please sign in to comment.