Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@andresilva
Copy link
Contributor

@andresilva andresilva added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. C1-low PR touches the given topic and has a low impact on builders. labels Jun 13, 2022
@andresilva
Copy link
Contributor Author

@svyatonik I had to make some changes to some of the bridges tests. The behavior of validate_commit has changed slightly and now it requires that the block that gets finalized by the given precommits is the same as the target block in the commit (previously any descendant would be accepted). Let me know if this is problematic.

#[test]
fn same_result_when_justification_contains_duplicate_vote() {
let mut justification = make_default_justification(&test_header(1));
let mut justification = make_justification_for_header(JustificationGeneratorParams {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default justification sets ancestors: 2 which means that e.g. the precommits finalize block #3 while the commit says that the target finalized block is #1.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'll fix it upstream! BTW - we'll probably removed bridges subtree from polkadot repo soon, so you won't need to fix our code anymore.

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 6781bdb into master Jun 14, 2022
@paritytech-processbot paritytech-processbot bot deleted the andre/companion-11302 branch June 14, 2022 11:22
al3mart pushed a commit that referenced this pull request Jul 14, 2022
* bridges: bump finality-grandpa version

* bridges: fix tests

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants