fix never ending condition

This commit is contained in:
Niko Storni 2020-05-14 06:47:19 +02:00
parent 046f46267e
commit 3bb17b09d3

View file

@ -24,7 +24,7 @@ func waitConfirmations(s *Sync) error {
allConfirmed := false allConfirmed := false
waitCount := 0 waitCount := 0
waiting: waiting:
for !allConfirmed || waitCount >= 2 { for !allConfirmed || waitCount < 2 {
utxolist, err := s.daemon.UTXOList(&defaultAccount, 1, 10000) utxolist, err := s.daemon.UTXOList(&defaultAccount, 1, 10000)
if err != nil { if err != nil {
return err return err