lnwallet: fix loop binding bug
This commit is contained in:
parent
2947036633
commit
c7fad2d7cf
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user