Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Refactor bridger #190

Merged
merged 150 commits into from
Jul 23, 2021
Merged

Refactor bridger #190

merged 150 commits into from
Jul 23, 2021

Conversation

fewensa
Copy link
Contributor

@fewensa fewensa commented Jun 3, 2021

@fewensa fewensa changed the title Refactor init Refactor bridger Jun 3, 2021
fewensa and others added 3 commits July 21, 2021 15:06
* darwinia-ethereum

* add ethereum service tracking support

* add stop to ethereum service

* add ethereum topics to subscribe

* update rust-web3 to new version to unify tokio

* process log by topic

* make ethereum tracker stoppable

* make LogsHandler handle self mut

* change evm log tracker to use anyhow::Result

* processing the subscribed logs

* add relay service to darwinia <> ethereum

* update dependencies

* add redeem service

* component-darwinia-subxt

* fix errors

* fix darwinia-ethereum extrinsics

* remove shadow from extrinsics serivce

* Update cache

* add guard service

* add darwinia service

* cargo.lock

* use config

* update cargo.lock

* Add more error info

* fix task_manager error

* change task-darwinia-ethereum log level

* fix DarwiniaAccount init error

* add a stop msg to darwinia subscribe service

* add log target to darwinia subscribe service

* fix the code of capturing the restart error in DarwiniaBlockTracker

* start the subscribing process when the darwinia service starts

* update ethereum subscribe service

* cargo.lock

* fix guard

* fix relay

* fix darwinia-ethereum  last-redeemed

* fix darwinia-ethereum scan_from

* add reconnection function to darwinia-ethereum darwinia subscribe service

* remove a unwrap from guard service

* update and fix something in darwinia-ethereum task

* modify log for evm_log_tracker

* add init value to target & relayed in darwinia-ethereum relay service

* check the input block number before assign it to target

* change log info

* guard reconnecting support

* sleep 30 secs before reconnecting

* change guard log

* fix guard

* change storage MmrRootsToSign return type

* use microkv to track block

* throw err when evm_log_tracker handle logs

* reconnect support for darwinia service

* reconnect support for ethereum service

* adjust relay logic & add reconnect support

* reconnect support for extrinsics service

* reconnect support for redeem service

* open all darwinia-ethereum services

* merge refactor

* remove unused imports

* fix some

* add start with block number support to darwinia service

* add start with block number support to ethereum service

* pass if type size unavailable

* fix evm log tracker to raise err when get next range of logs

* add log detail to relay

* debug

* refactor relay service to reduce the connections

* refactor redeem service to reduce the connections

* refactor extrinsics service to reduce the connections

* add reconnect helper's new function

* remove unused

* add reconnect to extrinsics helper's new function

* fix start info

* fix relay log

* change log info

* fix log

* fix guard

* change ethereum topics config

* fix log

* add task-darwinia-ethereum.toml template

* merge refactor

Co-authored-by: Aki Wu <wuminzhe@gmail.com>
Co-authored-by: HackFisher <hackfisher@gmail.com>
@fewensa
Copy link
Contributor Author

fewensa commented Jul 22, 2021

@wuminzhe some test error in evm-log-tracker crate

@fewensa fewensa marked this pull request as ready for review July 23, 2021 04:53
@hackfisher hackfisher merged commit 82d0d95 into master Jul 23, 2021
@hackfisher hackfisher deleted the refactor branch July 23, 2021 05:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: the darwinia node bridger connect require flag --enable-offchain-indexing 1
3 participants