mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue