Skip to content

Commit

Permalink
Merge pull request #257 from maticnetwork/mardizzone/grpc-cli
Browse files Browse the repository at this point in the history
fix gRPC in docker devnets
  • Loading branch information
marcello33 authored Nov 14, 2024
2 parents f9bedde + 1c54ba1 commit f915ce5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/integration-tests/bor_health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ do
fi
done

echo $peers
echo $block
echo "$peers"
echo "$block"
8 changes: 4 additions & 4 deletions .github/integration-tests/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ do
exit 1
fi

if (( $balance > $balanceInit )); then
if (( balance > balanceInit )); then
if [ $stateSyncFound != "true" ]; then
stateSyncTime=$(( SECONDS - start_time ))
stateSyncFound="true"
Expand All @@ -27,7 +27,7 @@ do

checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id)

if [ $checkpointID != "null" ]; then
if [ "$checkpointID" != "null" ]; then
if [ $checkpointFound != "true" ]; then
checkpointTime=$(( SECONDS - start_time ))
checkpointFound="true"
Expand All @@ -40,5 +40,5 @@ do

done
echo "Both state sync and checkpoint went through. All tests have passed!"
echo "Time taken for state sync: $(printf '%02dm:%02ds\n' $(($stateSyncTime%3600/60)) $(($stateSyncTime%60)))"
echo "Time taken for checkpoint: $(printf '%02dm:%02ds\n' $(($checkpointTime%3600/60)) $(($checkpointTime%60)))"
echo "Time taken for state sync: $(printf '%02dm:%02ds\n' $((stateSyncTime%3600/60)) $((stateSyncTime%60)))"
echo "Time taken for checkpoint: $(printf '%02dm:%02ds\n' $((checkpointTime%3600/60)) $((checkpointTime%60)))"
2 changes: 1 addition & 1 deletion src/setup/devnet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class Devnet {
)
.replace(
/bor_grpc_url[ ]*=[ ]*".*"/gi,
'bor_grpc_url = "localhost:3131"'
`bor_grpc_url = "bor${i}:3131"`
)
.replace(
/amqp_url[ ]*=[ ]*".*"/gi,
Expand Down

0 comments on commit f915ce5

Please sign in to comment.