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

Commit

Permalink
update readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
salman01zp committed Aug 25, 2023
1 parent bfa75cc commit 7af34d4
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,41 @@ cp eth2substrate-block-relay-rs/config_for_tests.toml /tmp/empty/
export ETH1_INFURA_API_KEY="your_infura_key"
```

#### 4. Build Light client relayer
#### 4. Build Light client
```bash
cargo build --release -p node-template
```

#### 4. Run light client
```bash
./target/release/node-template --dev \
--relayer-config-dir=./gadget/config \
--light-client-init-pallet-config-path=./crates/eth2-pallet-init/config.toml \
--light-client-relay-config-path=./eth2substrate-block-relay-rs/config.toml
#terminal 1
./target/release/node-template --tmp --chain local --alice \
--rpc-cors all --rpc-external --rpc-methods=unsafe \
--port 30433 \
--relayer-config-dir=./gadget/config \
--light-client-init-pallet-config-path=./crates/eth2-pallet-init/config.toml \
--light-client-relay-config-path=./eth2substrate-block-relay-rs/config.toml
--rpc-port 9444

#terminal 2
./target/release/node-template --tmp --chain local --bob \
--rpc-cors all --rpc-external --rpc-methods=unsafe \
--port 30405 \
--relayer-config-dir=./gadget/config \
--light-client-init-pallet-config-path=./crates/eth2-pallet-init/config.toml \
--light-client-relay-config-path=./eth2substrate-block-relay-rs/config.toml
--rpc-port 9445 --bootnodes /ip4/127.0.0.1/tcp/30433/p2p/12D3KooWCzqQx1oEPJ94uDPXPa2VdHqDD5ftpCFmSd5KPHgxMivK

#terminal 3
./target/release/node-template --tmp --chain local --charlie \
--rpc-cors all --rpc-external \
--rpc-port 9448 \
--port 30408 \
--relayer-config-dir=./gadget/config \
--light-client-init-pallet-config-path=./crates/eth2-pallet-init/config.toml \
--light-client-relay-config-path=./eth2substrate-block-relay-rs/config.toml
--bootnodes /ip4/127.0.0.1/tcp/30433/p2p/12D3KooWCzqQx1oEPJ94uDPXPa2VdHqDD5ftpCFmSd5KPHgxMivK \
--unsafe-rpc-external --rpc-methods=unsafe
```

---
Expand Down

0 comments on commit 7af34d4

Please sign in to comment.