Skip to content

Commit

Permalink
Run single relayer in cluster script by default (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal authored Jun 29, 2023
1 parent 36fa7a6 commit a60fd5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ services:
"--libp2p", "0.0.0.0:1478",
"--jsonrpc", "0.0.0.0:8545",
"--prometheus", "0.0.0.0:5001",
"--seal"
"--seal",
"--relayer"
]
depends_on:
init:
Expand Down
7 changes: 3 additions & 4 deletions scripts/cluster
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function startServerFromBinary() {
if [ "$1" == "write-logs" ]; then
echo "Writing validators logs to the files..."
./polygon-edge server --data-dir ./test-chain-1 --chain genesis.json \
--grpc-address :10000 --libp2p :30301 --jsonrpc :10002 \
--grpc-address :10000 --libp2p :30301 --jsonrpc :10002 --relayer \
--num-block-confirmations 2 --seal --log-level DEBUG 2>&1 | tee ./validator-1.log &
./polygon-edge server --data-dir ./test-chain-2 --chain genesis.json \
--grpc-address :20000 --libp2p :30302 --jsonrpc :20002 \
Expand All @@ -147,7 +147,7 @@ function startServerFromBinary() {
wait
else
./polygon-edge server --data-dir ./test-chain-1 --chain genesis.json \
--grpc-address :10000 --libp2p :30301 --jsonrpc :10002 \
--grpc-address :10000 --libp2p :30301 --jsonrpc :10002 --relayer \
--num-block-confirmations 2 --seal --log-level DEBUG &
./polygon-edge server --data-dir ./test-chain-2 --chain genesis.json \
--grpc-address :20000 --libp2p :30302 --jsonrpc :20002 \
Expand All @@ -163,8 +163,7 @@ function startServerFromBinary() {
}

function startServerFromDockerCompose() {
if [ "$1" != "polybft" ]
then
if [ "$1" != "polybft" ]; then
export EDGE_CONSENSUS="$1"
fi

Expand Down

0 comments on commit a60fd5a

Please sign in to comment.