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

Make relay generic over source/target chains #58

Merged
merged 7 commits into from
Apr 8, 2020
Merged

Conversation

svyatonik
Copy link
Contributor

@svyatonik svyatonik commented Apr 7, 2020

This is required to implement Substrate -> Ethereum headers synchronization, which is required to test solidity contract (#50) in action. The synchronization process would be almost the same (the biggest difference would be the extra header data - tx receipts vs justification) as the eth-to-sub, so this PR mostly just moves code around + makes it generic over chains (i.e. instead of ethereum_headers.rs there's now generic headers.rs).

Also: there's now no default mode for the relay - you should specify subcommand. Currently the only subcommand is eth-to-sub. Next PRs will introduce sub-to-eth mode.

Copy link
Contributor

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Looks sane! Few tiny things!

relays/ethereum/src/ethereum_types.rs Outdated Show resolved Hide resolved
relays/ethereum/src/ethereum_types.rs Outdated Show resolved Hide resolved
relays/ethereum/src/substrate_client.rs Show resolved Hide resolved
@HCastano HCastano merged commit 878d17a into master Apr 8, 2020
@HCastano HCastano deleted the generic-sync branch April 8, 2020 00:48
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
Deactivate mdns for polkadot node as it prevents the process to exit properly

Fixes #57
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
* renamed to-be-generic files

* make everything required generic over source/target chains

* some more fixes

* cargo fmt --all

* trait functions -> trait constants

* cargo --fmt --all
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
* renamed to-be-generic files

* make everything required generic over source/target chains

* some more fixes

* cargo fmt --all

* trait functions -> trait constants

* cargo --fmt --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants