Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update witness readme #231

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
13 changes: 7 additions & 6 deletions witness-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

## How to deploy a new service?

0. install docker
0. install docker and git clone iotube repo.

1. create a working path at `~/iotex-witness/` with `~/iotex-witness/etc`.
2. copy `ioTube/witness-service/.env.template` to `~/iotex-witness/etc/.env`, and set `RELAYER_URL` and `WITNESS_PRIVATE_KEY`
3. `cd ioTube/witness-service/ && ./start_witness.sh` to build and start service.
4. update `witness-config-[chainname].secret.yaml` (currently eth, bsc, matic, iotex are in effective.): `clientURL` to your own RPC
5. update `witness-config-[chainname].yaml`: `startBlockHeight` to the tip of the blockchain. (only fetch new data onwards.)

1. go to the working directory of this repo, and then go into `witness-service` directory
2. create a path at `~/iotex-witness/etc`
3. copy .env.template `~/iotex-witness/etc/.env`, and set values
4. set `clientURL` in `witness-config-ethereum.secret.yaml`
5. run `./start_witness.sh` to build and start running services.
Loading