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

lnwallet: fix loop binding bug
This commit is contained in:
Wilmer Paulino 2019-11-07 10:49:18 -08:00 committed by GitHub
commit 2bec35a3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}