[][src]Crate darwinia_shadow

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.3

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
  • Please make sure you have sqlite3 installed in your machine

Environment

ENVDescExample
ETHEREUM_RPCThe rpc of ethereum nodeETHEREUM_RPC=http://localhost:8545
ETHEREUM_ROPSTENEnable ropsten sourceETHEREUM_ROPSTEN=true
MMR_LOGThe gap of mmr logsMMR_LOG=10000

Trouble Shooting

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

LICENSE

GPL-3.0

Modules

api

The API server of Shadow

chain

Relayable chains

cmd

shadow commands

mmr

Shdaow service mmr implementation

result

MMR Errors

Macros

bytes

Convert hex string to Vec<u8> or [u8; n]

construct_hash_bytes

Construct hash bytes

doc_comment

Doc with expr

hex

Convert bytes to hex

serde_array

Implement serde for big array

Structs

ShadowShared

Shadow shared data