Verus Coin - this coin was backdoored by it's lead dev and should not be trusted! https://git.hush.is/duke/backdoors/src/branch/master/vrsc.md
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
999 B

#!/bin/bash
#set -ex
echo "...Checking komodo.conf"
if [ ! -e "$HOME/.komodo/komodo.conf" ]; then
mkdir -p $HOME/.komodo
echo "...Creating komodo.conf"
cat <<EOF > $HOME/.komodo/komodo.conf
rpcuser=${rpcuser:-komodorpc}
rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`}
txindex=1
bind=${listenip:-127.0.0.1}
rpcbind=${listenip:-127.0.0.1}
EOF
cat $HOME/.komodo/komodo.conf
fi
echo "...Checking fetch-params"
$HOME/zcutil/fetch-params.sh
echo "Initialization completed successfully"
echo
# ToDo: Needs some rework. I was sick
if [ $# -gt 0 ]; then
args=("$@")
elif [ -z ${assetchain+x} ]; then
args=("-gen -genproclimit=${genproclimit:-2} -pubkey=${pubkey}")
else
args=("-pubkey=${pubkey} -ac_name=${assetchain} -addnode=${seednode}")
fi
echo
echo "****************************************************"
echo "Running: komodod ${args[@]}"
echo "****************************************************"
exec komodod ${args[@]}