Browse Source

Split once count is lower than threshold

We were erroneously splitting when required UTXO was larger than threshold, which happened to work as expected when splitting 5-10 as both values are equal.
master
Luke Childs 6 years ago
parent
commit
b636d69037
  1. 2
      utxosplitter.sh

2
utxosplitter.sh

@ -55,7 +55,7 @@ fi
utxo_required=$(calc ${target_utxo_count}-${utxo_count})
if [[ ${utxo_required} -gt ${split_threshold} ]]; then
if [[ ${utxo_count} -le ${split_threshold} ]]; then
echo "[${coin}] Splitting ${utxo_required} extra UTXOs"
json=$(./splitfunds.sh ${coin} ${utxo_required})
txid=$(echo ${json} | jq -r '.txid')

Loading…
Cancel
Save