#substrate #service #ethereum #darwinia

bin+lib darwinia-shadow

The shadow service for relayers and verify workers to retrieve header data and generate proof

Show the crate…

13 releases

0.2.5 Sep 23, 2020
0.2.4 Sep 15, 2020
0.2.0 Aug 30, 2020
0.1.3 Aug 29, 2020
0.0.3 Aug 28, 2020

#588 in #substrate

30 downloads per month

GPL-3.0-or-later

330KB
6.5K SLoC

Go 5.5K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments

Shadow

Shadow crate doc LICENSE

The shadow service for relayers and verify workers to retrieve header data and generate proof. Shadow will index the data it needs from blockchain nodes, such as Ethereum and Darwinia.

Usage

shadow 0.2.5

USAGE:
    shadow <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    count    Current block height in mmr store
    help     Prints this message or the help of the given subcommand(s)
    run      Start shadow service
    trim     Trim mmr from target leaf

Download

$ cargo install darwinia-shadow

Note

  • Please make sure you have golang installed in your machine

Environment

ENV Desc Example
ETHEREUM_RPC The rpc of ethereum node ETHEREUM_RPC=http://localhost:8545
ETHEREUM_ROPSTEN Enable ropsten source ETHEREUM_ROPSTEN=true
MMR_LOG The gap of mmr logs MMR_LOG=10000

Trouble Shooting

Everytime you run proof in error, please delete ~/.ethashproof and ~/.ethash and retry.

LICENSE

GPL-3.0

Dependencies

~67MB
~1.5M SLoC