diff --git a/clients/ethereumjs/ethereumjs.sh b/clients/ethereumjs/ethereumjs.sh index de3ce67d74..2fecac56ea 100644 --- a/clients/ethereumjs/ethereumjs.sh +++ b/clients/ethereumjs/ethereumjs.sh @@ -49,7 +49,7 @@ set -e ethereumjs="node /ethereumjs-monorepo/packages/client/dist/bin/cli.js" -FLAGS="--gethGenesis ./genesis.json --rpc --rpcEngine --saveReceipts --rpcEnginePort 8551 --ws --logLevel debug" +FLAGS="--gethGenesis ./genesis.json --rpc --rpcEngine --saveReceipts --rpcEnginePort 8551 --ws --logLevel debug --rpcDebug --transports rlpx --isSingleNode" # Configure the chain. @@ -75,6 +75,15 @@ if [ "$HIVE_TERMINAL_TOTAL_DIFFICULTY" != "" ]; then FLAGS="$FLAGS --jwt-secret ./jwtsecret" fi + +# Load the test chain if present +echo "Loading initial blockchain..." +if [ -f /chain.rlp ]; then + FLAGS="$FLAGS --loadBlocksFromRlp=/chain.rlp" + else + echo "Warning: chain.rlp not found." +fi + FLAGS="$FLAGS --bootnodes=$HIVE_BOOTNODE" echo "Running ethereumjs with flags $FLAGS" -$ethereumjs $FLAGS \ No newline at end of file +$ethereumjs $FLAGS