utxonursery: fix bound variable bug

A pointer to the loop variable was passed to the waitForSweepConf
goroutine, causing the wrong output to be graduated from
kindergarten.
This commit is contained in:
Joost Jager
2018-12-21 09:29:26 +01:00
parent bd0177ddc5
commit 4a58ec5b15

View File

@@ -807,7 +807,7 @@ func (u *utxoNursery) sweepMatureOutputs(classHeight uint32,
return err
}
u.wg.Add(1)
go u.waitForSweepConf(classHeight, &output, resultChan)
go u.waitForSweepConf(classHeight, &local, resultChan)
}
return nil