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

Commit

Permalink
Remove leftover manifest flag and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Apr 18, 2023
1 parent 2113125 commit d12f72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions consensus/polybft/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ It has a native support for running bridge, which enables running cross-chain tr

## Setup local testing environment

### Precondition

1. Build binary

```bash
Expand Down Expand Up @@ -48,12 +46,12 @@ It has a native support for running bridge, which enables running cross-chain tr
polygon-edge rootchain server
```

5. Deploy and initialize rootchain contracts - this command deploys rootchain smart contracts and initializes them. It also updates manifest configuration with rootchain contract addresses and rootchain default sender address.
5. Deploy and initialize rootchain contracts - this command deploys rootchain smart contracts and initializes them. It also updates genesis configuration with rootchain contract addresses and rootchain default sender address.

```bash
polygon-edge rootchain deploy \
--deployer-key <hex_encoded_rootchain_account_private_key> \
[--manifest ./manifest.json] \
[--genesis ./genesis.json] \
[--json-rpc http://127.0.0.1:8545] \
[--test]
```
Expand Down
8 changes: 2 additions & 6 deletions docker/local/polygon-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ case "$1" in
--dir genesis.json \
--consensus ibft \
--ibft-validators-prefix-path data- \
--validator-set-size=4 \
--bootnode "/dns4/node-1/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[0] | .node_id')" \
--bootnode "/dns4/node-2/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[1] | .node_id')"
fi
Expand All @@ -39,15 +38,12 @@ case "$1" in
secrets=$("$POLYGON_EDGE_BIN" polybft-secrets init --insecure --num 4 --data-dir /data/data- --json)
echo "Secrets have been successfully generated"

echo "Generating manifest..."
"$POLYGON_EDGE_BIN" manifest --path /data/manifest.json --validators-path /data --validators-prefix data-

echo "Generating PolyBFT Genesis file..."
"$POLYGON_EDGE_BIN" genesis $CHAIN_CUSTOM_OPTIONS \
--dir /data/genesis.json \
--consensus polybft \
--manifest /data/manifest.json \
--validator-set-size=4 \
--validators-path /data \
--validators-prefix data- \
--bootnode "/dns4/node-1/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[0] | .node_id')" \
--bootnode "/dns4/node-2/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[1] | .node_id')"
;;
Expand Down

0 comments on commit d12f72a

Please sign in to comment.