mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
Sync Westend to Millau (#824)
* make finality verifier pallet instantiable * add second instance of finality verifier pallet to the Millau runtime * add Westend -> Millau headers relay * use wss to connect to public westend nodes * initialize with best_finalized_block * typo * Revert "initialize with best_finalized_block" This reverts commit 954ed2832372d67618abc1a06d47e66faa93f674. * pass VoterSet by ref * new bridge initialization code * loop upper bound * Polkadot -> Westend * fixed tests compilation * default-features * assert
This commit is contained in:
committed by
Bastian Köcher
parent
249a8f73ff
commit
d749bc3a96
@@ -34,7 +34,7 @@ fn make_justification_for_header_1() -> GrandpaJustification<TestHeader> {
|
||||
#[test]
|
||||
fn justification_with_invalid_encoding_rejected() {
|
||||
assert_eq!(
|
||||
verify_justification::<TestHeader>(header_id::<TestHeader>(1), TEST_GRANDPA_SET_ID, voter_set(), &[],),
|
||||
verify_justification::<TestHeader>(header_id::<TestHeader>(1), TEST_GRANDPA_SET_ID, &voter_set(), &[],),
|
||||
Err(Error::JustificationDecode),
|
||||
);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ fn justification_with_invalid_target_rejected() {
|
||||
verify_justification::<TestHeader>(
|
||||
header_id::<TestHeader>(2),
|
||||
TEST_GRANDPA_SET_ID,
|
||||
voter_set(),
|
||||
&voter_set(),
|
||||
&make_justification_for_header_1().encode(),
|
||||
),
|
||||
Err(Error::InvalidJustificationTarget),
|
||||
@@ -61,7 +61,7 @@ fn justification_with_invalid_commit_rejected() {
|
||||
verify_justification::<TestHeader>(
|
||||
header_id::<TestHeader>(1),
|
||||
TEST_GRANDPA_SET_ID,
|
||||
voter_set(),
|
||||
&voter_set(),
|
||||
&justification.encode(),
|
||||
),
|
||||
Err(Error::InvalidJustificationCommit),
|
||||
@@ -77,7 +77,7 @@ fn justification_with_invalid_authority_signature_rejected() {
|
||||
verify_justification::<TestHeader>(
|
||||
header_id::<TestHeader>(1),
|
||||
TEST_GRANDPA_SET_ID,
|
||||
voter_set(),
|
||||
&voter_set(),
|
||||
&justification.encode(),
|
||||
),
|
||||
Err(Error::InvalidAuthoritySignature),
|
||||
@@ -93,7 +93,7 @@ fn justification_with_invalid_precommit_ancestry() {
|
||||
verify_justification::<TestHeader>(
|
||||
header_id::<TestHeader>(1),
|
||||
TEST_GRANDPA_SET_ID,
|
||||
voter_set(),
|
||||
&voter_set(),
|
||||
&justification.encode(),
|
||||
),
|
||||
Err(Error::InvalidPrecommitAncestries),
|
||||
@@ -106,7 +106,7 @@ fn valid_justification_accepted() {
|
||||
verify_justification::<TestHeader>(
|
||||
header_id::<TestHeader>(1),
|
||||
TEST_GRANDPA_SET_ID,
|
||||
voter_set(),
|
||||
&voter_set(),
|
||||
&make_justification_for_header_1().encode(),
|
||||
),
|
||||
Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user