Browse Source

modified: btc_splitfunds

modified:   startassets
master^2
blackjok3r 7 years ago
parent
commit
94d572171d
  1. 1
      a-team/scripts.notary/btc_splitfunds
  2. 5
      a-team/scripts.notary/sendawaynn.sh
  3. 18
      a-team/scripts.notary/startassets

1
a-team/scripts.notary/btc_splitfunds

@ -17,4 +17,5 @@ if [ "$UTXOS" -lt "99" ]
RESULT="$(acsplit BTC 20)"
print_txid "$RESULT"
fi
echo ""
echo "---------------------------------------------------------------------------------------------"

5
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 " "

18
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

Loading…
Cancel
Save