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.
32 lines
1.7 KiB
32 lines
1.7 KiB
#!/bin/bash
|
|
# I have extra changes here, on how I launch iguana, if you have a custom build script for SHA256 hardware instructions etc, you cal call this first, then run either the default sript or your own one like I do here.
|
|
komodo-cli lockunspent true `komodo-cli listlockunspent | jq -c .`
|
|
pkill -15 iguana
|
|
sleep 2
|
|
|
|
# Start normally with nosplit
|
|
#stdbuf -oL $1 ../agents/iguana notary_nosplit & #> iguana.log 2> error.log &
|
|
|
|
# Start with -19 nice on all threads (might not be optimal, could slow down listunspent on komodod)
|
|
sudo nice -n -19 su -c "stdbuf -oL $1 ../agents/iguana notary_nosplit" node &
|
|
sleep 1
|
|
|
|
# Set main iguana process as -19 nice, this does help.
|
|
#sudo renice -19 $(pidof iguana)
|
|
|
|
myip=`curl -s4 checkip.amazonaws.com`
|
|
source pubkey.txt
|
|
|
|
sleep 4
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"
|
|
sleep 3
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"145.239.204.33\"}"
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"74.208.211.94\"}"
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"138.121.203.210\"}"
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"37.9.62.186\"}"
|
|
|
|
# All the coins to be activated are moved to a new script, and will be standard for all nodes, you just call this scipt after any special changes.When new coins are added, you don't need to check ot change anything in your own scripts.
|
|
./add_coins
|
|
|
|
sleep 30
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"KMD\",\"pubkey\":\"$pubkey\"}"
|
|
|