Merge pull request #3687 from joostjager/wallet-binding-fix

lnwallet: fix loop binding bug
This commit is contained in:
Wilmer Paulino authored and GitHub committed 2019-11-07 10:49:18 -08:00
commit 2bec35a3d2
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)
}