From c7fad2d7cf3459472a58c8c0c72d2416ae5a9d18 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Thu, 7 Nov 2019 11:44:58 +0100 Subject: [PATCH] lnwallet: fix loop binding bug --- lnwallet/wallet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index c3c2020d..342579e9 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -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) }