diff --git a/a-team/scripts.notary/btc_splitfunds b/a-team/scripts.notary/btc_splitfunds index 30f8b3b..73fd08d 100755 --- a/a-team/scripts.notary/btc_splitfunds +++ b/a-team/scripts.notary/btc_splitfunds @@ -17,4 +17,5 @@ if [ "$UTXOS" -lt "99" ] RESULT="$(acsplit BTC 20)" print_txid "$RESULT" fi +echo "" echo "---------------------------------------------------------------------------------------------" diff --git a/a-team/scripts.notary/sendawaynn.sh b/a-team/scripts.notary/sendawaynn.sh index ce7025a..4dbbf49 100755 --- a/a-team/scripts.notary/sendawaynn.sh +++ b/a-team/scripts.notary/sendawaynn.sh @@ -24,7 +24,7 @@ echo 'Balance: '$balance if (( $(echo "$balance < 11" | bc -l) )); then echo "----------------------------------------------------------------" echo " " - exit +# exit fi # Set the send to address, and send all coinbase transactions @@ -36,9 +36,10 @@ hex=$(curl -s --user $curluser:$curlpass --data-binary "@$curdir/createrawtx.cur nlocktime=$(printf "%08x" $(date +%s) | dd conv=swab 2> /dev/null | rev) hex=${hex::-8}$nlocktime signed=$(curl -s --user $curluser:$curlpass --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["'$hex'"]}' -H 'content-type: text/plain;' http://127.0.0.1:$curlport/ | jq -r .result.hex) +echo $signed #Broadcast the transaction -txid=$(curl -s --user $curluser:$curlpass --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["'$signed'"]}' -H 'content-type: text/plain;' http://127.0.0.1:$curlport/ | jq -r .result) +#txid=$(curl -s --user $curluser:$curlpass --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["'$signed'"]}' -H 'content-type: text/plain;' http://127.0.0.1:$curlport/ | jq -r .result) #echo $txid echo "----------------------------------------------------------------" echo " " diff --git a/a-team/scripts.notary/startassets b/a-team/scripts.notary/startassets index d40242e..9e1ef85 100755 --- a/a-team/scripts.notary/startassets +++ b/a-team/scripts.notary/startassets @@ -1,31 +1,19 @@ #!/bin/bash set -eo pipefail +delay=10 source ~/komodo/src/pubkey.txt overide_args="${@}" extra_args="-connect=172.16.16.11" source skip -#wait for deamon to start -delay () { - started=0 - while [[ $started -eq 0 ]]; do - sleep 5 - komodo-cli $1 getbalance - outcome=$(echo $?) - if [[ $outcome -eq 0 ]]; then - started=1 - fi - done -} - verusd $overide_args $extra_args -pubkey=$pubkey & -delay -ac_name=VRSC +sleep $delay ~/komodo/src/listassetchainparams | while read args; do if [[ " ${skip[@]} " =~ " ${args} " ]]; then pointless=0 else komodod $args $overide_args $extra_args -pubkey=$pubkey & - delay $(echo $args | awk '{print $2}') + sleep $delay fi done