actually count UTXOs
This commit is contained in:
parent
7f48220a80
commit
a4c6b2da30
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ func (s *Sync) ensureEnoughUTXOs() error {
|
||||||
|
|
||||||
for _, utxo := range *utxolist {
|
for _, utxo := range *utxolist {
|
||||||
amount, _ := strconv.ParseFloat(utxo.Amount, 64)
|
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 {
|
if utxo.Confirmations > 0 {
|
||||||
confirmedCount++
|
confirmedCount++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue