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:
1 file changed
+1
-1
+1
-1
@@ -807,7 +807,7 @@ func (u *utxoNursery) sweepMatureOutputs(classHeight uint32,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
u.wg.Add(1)
|
u.wg.Add(1)
|
||||||
go u.waitForSweepConf(classHeight, &output, resultChan)
|
go u.waitForSweepConf(classHeight, &local, resultChan)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user