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:
parent
bd0177ddc5
commit
4a58ec5b15
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user