#!/usr/bin/env sh

# Convenience script to run the lodestar binary from built source
#
# ./lodestar.sh beacon --network mainnet

SCRIPT_DIR=$(cd "$(dirname -- "$0")" >/dev/null 2>&1 && pwd -P)

exec node --trace-deprecation --max-old-space-size=8192 "$SCRIPT_DIR/packages/cli/bin/lodestar.js" "$@"
