From 4a58ec5b1542367b0f18cbe0ee9f42629bf1c019 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 21 Dec 2018 09:29:26 +0100 Subject: [PATCH] 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. --- utxonursery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utxonursery.go b/utxonursery.go index f31ca496..f12f5388 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -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