mirror of
https://github.com/serai-dex/serai.git
synced 2024-10-31 17:37:38 +00:00
21 lines
508 B
Bash
21 lines
508 B
Bash
|
#!/bin/sh
|
||
|
# Setup Environment
|
||
|
RPC_USER="${RPC_USER:=serai}"
|
||
|
RPC_PASS="${RPC_PASS:=seraidex}"
|
||
|
MINER="${MINER:=xmraddr}"
|
||
|
BLOCK_TIME=${BLOCK_TIME:=5}
|
||
|
|
||
|
|
||
|
# Run Monero
|
||
|
monerod --regtest --rpc-login ${RPC_USER}:${RPC_PASS} \
|
||
|
--rpc-access-control-origins * --rpc-bind-ip=0.0.0.0 --offline \
|
||
|
--fixed-difficulty=1 --non-interactive --start-mining ${MINER} \
|
||
|
--mining-threads 1 --bg-mining-enable --detach
|
||
|
|
||
|
# give time to monerod to start
|
||
|
while true; do
|
||
|
sleep 5
|
||
|
done
|
||
|
|
||
|
# Create wallet from PRIV_KEY in monero wallet
|