lnwallet: fix loop binding bug

This commit is contained in:
Joost Jager 2019-11-07 11:44:58 +01:00
parent 2947036633
commit c7fad2d7cf
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -346,6 +346,8 @@ func (l *LightningWallet) Shutdown() error {
func (l *LightningWallet) LockedOutpoints() []*wire.OutPoint {
outPoints := make([]*wire.OutPoint, 0, len(l.lockedOutPoints))
for outPoint := range l.lockedOutPoints {
outPoint := outPoint
outPoints = append(outPoints, &outPoint)
}