Skip to content

Commit

Permalink
Merge branch '2023-testnet' of https://github.com/KomodoPlatform/dPoW
Browse files Browse the repository at this point in the history
…into 2023-testnet
  • Loading branch information
smk762 committed Jun 14, 2024
2 parents 34ea1b5 + ecc2882 commit c12ba6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ Create split script called `split_testnet.sh`. Use the following template as an
```
#!/bin/bash
SHELL=/bin/sh PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
conf_dir="/home/YOUR_USERNAME/.komodo/"
source /home/YOUR_USERNAME/dPoW/iguana/pubkey.txt
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
min_utxo=20
min_uxto=20
split_num=50
echo
Expand All @@ -105,7 +105,7 @@ echo
chain="KMD"
unspent=$(komodo-cli -conf=${conf_dir}/komodo.conf listunspent | jq '[.[] | select (.generated==false and .amount==0.0001 and .spendable==true and (.scriptPubKey == "'21${pubkey}ac'"))] | length')
echo "${chain}: $unspent"
if [ $unspent -lt min_utxo ]; then
if [ $unspent -lt $min_uxto ]; then
echo "Topping up ${chain}"
curl --url "http://127.0.0.1:7779" --data "{\"coin\":\""${chain}"\",\"agent\":\"iguana\",\"method\":\"splitfunds\",\"satoshis\":\"10000\",\"sendflag\":1,\"duplicates\":"${split_num}"}"
fi
Expand All @@ -114,7 +114,7 @@ for chain in "DOC" "MARTY"
do
unspent=$(komodo-cli -ac_name=${chain} -conf=${conf_dir}/${chain}/${chain}.conf listunspent | jq '[.[] | select (.generated==false and .amount==0.0001 and .spendable==true and (.scriptPubKey == "'21${pubkey}ac'"))] | length')
echo "${chain}: $unspent"
if [ $unspent -lt min_utxo ]; then
if [ $unspent -lt $min_uxto ]; then
echo "Topping up ${chain}"
curl --url "http://127.0.0.1:7779" --data "{\"coin\":\""${chain}"\",\"agent\":\"iguana\",\"method\":\"splitfunds\",\"satoshis\":\"10000\",\"sendflag\":1,\"duplicates\":"${split_num}"}"
fi
Expand Down Expand Up @@ -174,4 +174,4 @@ You should also check the following:

If all else fails, it may be a corrupted wallet.dat or local chain data. Make sure you have backed up your private key, then delete the chain data and wallet.dat file. Next, resync or bootstrap the chain. Don't forget to re-import your private key!

If you are still having issues, ask for help in the Discord testnet channel.
If you are still having issues, ask for help in the Discord testnet channel.

0 comments on commit c12ba6c

Please sign in to comment.