diff --git a/consensus/polybft/README.md b/consensus/polybft/README.md index 8389278f24..11abcb5223 100644 --- a/consensus/polybft/README.md +++ b/consensus/polybft/README.md @@ -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 @@ -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 \ - [--manifest ./manifest.json] \ + [--genesis ./genesis.json] \ [--json-rpc http://127.0.0.1:8545] \ [--test] ``` diff --git a/docker/local/polygon-edge.sh b/docker/local/polygon-edge.sh index cbb813c501..687850aaa7 100755 --- a/docker/local/polygon-edge.sh +++ b/docker/local/polygon-edge.sh @@ -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 @@ -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')" ;;