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