Skip to content

Add ethereum offchain worker#335

Merged
yanganto merged 12 commits intodarwinia-network:developfrom
yanganto:feature/crab-eth-offchain
Mar 23, 2020
Merged

Add ethereum offchain worker#335
yanganto merged 12 commits intodarwinia-network:developfrom
yanganto:feature/crab-eth-offchain

Conversation

@yanganto
Copy link
Copy Markdown
Contributor

@yanganto yanganto self-assigned this Mar 12, 2020
Copy link
Copy Markdown
Member

@aurexav aurexav left a comment

Choose a reason for hiding this comment

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

cargo fmt

@yanganto yanganto force-pushed the feature/crab-eth-offchain branch 2 times, most recently from f284efb to a36d11f Compare March 18, 2020 11:42
@yanganto yanganto force-pushed the feature/crab-eth-offchain branch 4 times, most recently from 8713399 to 7e86a9e Compare March 20, 2020 05:20
- get current eth block hight for current time stamp
- get total difficulty, parent hash
- retry in request
- build eth header
- verify eth header
- poc version: pass api key when build
@yanganto yanganto force-pushed the feature/crab-eth-offchain branch from 7e86a9e to 0f2d751 Compare March 20, 2020 11:07
@yanganto yanganto changed the title Feature/crab eth offchain Add ethereum offchain worker Mar 20, 2020
aurexav added 6 commits March 21, 2020 17:09
fix: retry logic
remove: alloc
update: use `Time` trait instead `pallet_timestamp` module
update: tests
@aurexav
Copy link
Copy Markdown
Member

aurexav commented Mar 22, 2020

If I don't use a VPN.

WARN wasm-runtime  Ran out of free WASM instances

@yanganto
Copy link
Copy Markdown
Contributor Author

yanganto commented Mar 23, 2020

If I don't use a VPN.

WARN wasm-runtime  Ran out of free WASM instances

This issue may not exist, when the #370 implemented and removed the retry feature.
#372 may not be implemented, because of the exhaust issue of wasm runtime.

Copy link
Copy Markdown
Contributor Author

@yanganto yanganto left a comment

Choose a reason for hiding this comment

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

Thanks for the refactor.

@yanganto yanganto merged commit 1cd0f4b into darwinia-network:develop Mar 23, 2020
@aurexav aurexav linked an issue Mar 24, 2020 that may be closed by this pull request
boundless-forest pushed a commit that referenced this pull request Aug 1, 2023
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.

Offchain worker

3 participants