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.
33 lines
1.1 KiB
33 lines
1.1 KiB
#!/bin/bash
|
|
# Copyright © 2018-2020 The Hush Developers
|
|
|
|
port=5556
|
|
agent=dragon
|
|
# TODO: check for jq and hush-cli
|
|
# unlock any locked utxos. This will unlock utxos for both dragons, need a filter for address to only unlock the pubkey you need to restart.
|
|
hush-cli lockunspent true $(hush-cli listlockunspent | jq -c .)
|
|
|
|
# Start normally, no split is default on this branch.
|
|
stdbuf -oL $1 ../agents/dragon notary &#> dragon.log 2> error.log &
|
|
|
|
myip=$(curl -s4 checkip.amazonaws.com)
|
|
source pubkey.txt
|
|
|
|
sleep 4
|
|
curl --url "http://127.0.0.1:$port" --data "{\"agent\":\"$agent\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"
|
|
sleep 3
|
|
|
|
# TODO: Need to get some seeds for both networks.
|
|
curl --url "http://127.0.0.1:$port" --data "{\"agent\":\"$agent\",\"method\":\"addnotary\",\"ipaddr\":\"1.1.1.1\"}"
|
|
|
|
# This will add all chain to notarize
|
|
./add_coins
|
|
|
|
#sleep 30
|
|
# dpow for KMD-> BTC.
|
|
#curl --url "http://127.0.0.1:$port" --data "{\"agent\":\"$agent\",\"method\":\"dpow\",\"symbol\":\"KMD\",\"pubkey\":\"$pubkey\"}"
|
|
|
|
#echo Launching dPoW for ACs
|
|
#sleep 20
|
|
# dpow for ACs
|
|
#./dpowassets
|
|
|