Use No-Op Ancestry Checker (#755)

* Use no-op ancestry checker

* Check that current header height is greater than last finalized

* Ensure that incoming headers are strictly greater than last finalized

* Ensure that header numbers always increase in tests
This commit is contained in:
Hernando Castano authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent c00a47d5ca
commit 658e4e9b5c
5 files changed
+64 -32

No files matched your search

+2 -2
View File
@@ -313,8 +313,8 @@ parameter_types! {
impl pallet_finality_verifier::Config for Runtime {
type BridgedChain = bp_rialto::Rialto;
type HeaderChain = pallet_substrate_bridge::Module<Runtime>;
type AncestryProof = Vec<bp_rialto::Header>;
type AncestryChecker = bp_header_chain::LinearAncestryChecker;
type AncestryProof = ();
type AncestryChecker = ();
type MaxRequests = MaxRequests;
}