Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FinalityEngine in substrate relay #1374

Merged
merged 5 commits into from
Apr 14, 2022
Merged

Conversation

svyatonik
Copy link
Contributor

@svyatonik svyatonik commented Apr 13, 2022

extracted from #1372

Since we'll have two finality "engines" now (GRANDPA and BEEFY), I've introduced FinalityEngine trait in this PR. This would allow us to reuse existing finality relay code for both GRANDPA and BEEFY. Beefy engine will be added in #1372

Important note - there's actually no new code in this PR. It is just about moving code around + adding generic/associated Engine argument to some structs.

Copy link
Collaborator

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

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

Awesome!

relays/lib-substrate-relay/src/finality/source.rs Outdated Show resolved Hide resolved
@svyatonik svyatonik enabled auto-merge (squash) April 14, 2022 08:57
@svyatonik svyatonik merged commit 6ef6bcc into master Apr 14, 2022
@svyatonik svyatonik deleted the introduce-finality-engine-to-relay branch April 14, 2022 09:05
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
* introduce FinalityEngine in relay code

* add FinalityEngine to relay

* spelling

* fix test compilation

* Update relays/lib-substrate-relay/src/finality/source.rs

Co-authored-by: Adrian Catangiu <[email protected]>

Co-authored-by: Adrian Catangiu <[email protected]>
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
* introduce FinalityEngine in relay code

* add FinalityEngine to relay

* spelling

* fix test compilation

* Update relays/lib-substrate-relay/src/finality/source.rs

Co-authored-by: Adrian Catangiu <[email protected]>

Co-authored-by: Adrian Catangiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants