The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/rosetta/infra/run.sh

18 lines
555 B

#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DATA="$DIR/data"
LOGS="$DATA/logs"
BASE_ARGS=(--http.ip "0.0.0.0" --ws.ip "0.0.0.0" --http.rosetta --node_type "explorer" --datadir "$DATA" --log.dir "$LOGS")
DATA_NAME="${DATA_NAME:=harmony_db_0}"
if [ -n "$RCLONE_DB_0_URL" ]; then
rclone -P -L sync $RCLONE_DB_0_URL $DATA/$DATA_NAME --transfers=64
fi
mkdir -p "$LOGS"
echo -e NODE ARGS: \" "$@" "${BASE_ARGS[@]}" \"
echo "NODE VERSION: $(./harmony --version)"
"$DIR/harmony" "$@" "${BASE_ARGS[@]}"