lnwallet: fix loop binding bug

This commit is contained in:
Joost Jager committed 2019-11-07 11:45:06 +01:00
1 parent 2947036633
commit c7fad2d7cf
1 file changed
+2
+2
View File
@@ -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)
}