actually count UTXOs

This commit is contained in:
Niko Storni 2019-06-25 22:28:43 -04:00
parent 7f48220a80
commit a4c6b2da30

View file

@ -170,7 +170,7 @@ func (s *Sync) ensureEnoughUTXOs() error {
for _, utxo := range *utxolist {
amount, _ := strconv.ParseFloat(utxo.Amount, 64)
if !utxo.IsMine && utxo.Type == "payment" && amount > 0.001 {
if utxo.IsMine && utxo.Type == "payment" && amount > 0.001 {
if utxo.Confirmations > 0 {
confirmedCount++
}