Merge pull request #3687 from joostjager/wallet-binding-fix
lnwallet: fix loop binding bug
This commit is contained in:
1 file changed
+2
@@ -346,6 +346,8 @@ func (l *LightningWallet) Shutdown() error {
|
|||||||
func (l *LightningWallet) LockedOutpoints() []*wire.OutPoint {
|
func (l *LightningWallet) LockedOutpoints() []*wire.OutPoint {
|
||||||
outPoints := make([]*wire.OutPoint, 0, len(l.lockedOutPoints))
|
outPoints := make([]*wire.OutPoint, 0, len(l.lockedOutPoints))
|
||||||
for outPoint := range l.lockedOutPoints {
|
for outPoint := range l.lockedOutPoints {
|
||||||
|
outPoint := outPoint
|
||||||
|
|
||||||
outPoints = append(outPoints, &outPoint)
|
outPoints = append(outPoints, &outPoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user