mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
lnwallet: fix loop binding bug
This commit is contained in:
@ -346,6 +346,8 @@ func (l *LightningWallet) Shutdown() error {
|
|||||||
func (l *LightningWallet) LockedOutpoints() []*wire.OutPoint {
|
func (l *LightningWallet) LockedOutpoints() []*wire.OutPoint {
|
||||||
outPoints := make([]*wire.OutPoint, 0, len(l.lockedOutPoints))
|
outPoints := make([]*wire.OutPoint, 0, len(l.lockedOutPoints))
|
||||||
for outPoint := range l.lockedOutPoints {
|
for outPoint := range l.lockedOutPoints {
|
||||||
|
outPoint := outPoint
|
||||||
|
|
||||||
outPoints = append(outPoints, &outPoint)
|
outPoints = append(outPoints, &outPoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user