add tests for find_potential_parents (#1338)

(would have closed) https://github.com/paritytech/cumulus/issues/2831
This commit is contained in:
Chris Sosnin
2023-09-12 16:22:39 +03:00
committed by GitHub
parent e005aef59b
commit 730edeb68c
2 changed files with 553 additions and 23 deletions
@@ -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,
@@ -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,