2022-09-12 15:01:14 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Setup Environment
|
|
|
|
|
RPC_USER="${RPC_USER:=serai}"
|
|
|
|
|
RPC_PASS="${RPC_PASS:=seraidex}"
|
|
|
|
|
BLOCK_TIME=${BLOCK_TIME:=5}
|
|
|
|
|
|
|
|
|
|
# Run Monero
|
|
|
|
|
monerod --regtest --rpc-login ${RPC_USER}:${RPC_PASS} \
|
2022-10-16 04:21:00 +02:00
|
|
|
--rpc-access-control-origins * --confirm-external-bind \
|
|
|
|
|
--rpc-bind-ip=0.0.0.0 --offline --fixed-difficulty=1 \
|
|
|
|
|
--non-interactive --mining-threads 1 --bg-mining-enable --detach
|
2022-09-12 15:01:14 -05:00
|
|
|
|
|
|
|
|
# give time to monerod to start
|
|
|
|
|
while true; do
|
|
|
|
|
sleep 5
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Create wallet from PRIV_KEY in monero wallet
|