#!/bin/bash # Start an isolated single-node fork chain with the AERE future-EIP precompiles # (0x0AE1-0x0AE7) active from genesis. Ethash + instant low-difficulty mining. set -uo pipefail BESU=/root/besu/build/install/besu/bin/besu rm -rf /root/node nohup "$BESU" \ --data-path=/root/node \ --genesis-file=/root/staging/bench/genesis.json \ --network-id=28777 \ --miner-enabled --miner-coinbase=0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf \ --min-gas-price=0 \ --rpc-http-enabled --rpc-http-host=127.0.0.1 --rpc-http-port=8545 \ --rpc-http-api=ETH,NET,WEB3,DEBUG,TXPOOL \ --host-allowlist='*' \ > /root/node.log 2>&1 & echo "besu pid $!" echo "waiting for RPC..." for i in $(seq 1 60); do bn=$(curl -s -X POST http://127.0.0.1:8545 -H 'Content-Type: application/json' \ --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' 2>/dev/null | grep -o '"result":"[^"]*"') if [ -n "$bn" ]; then echo "RPC up: $bn"; break; fi sleep 2 done tail -5 /root/node.log