mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
utxonursery+chanbackup: fix range loop binding bugs
This commit is contained in:
@@ -42,7 +42,7 @@ type PeerConnector interface {
|
||||
func Recover(backups []Single, restorer ChannelRestorer,
|
||||
peerConnector PeerConnector) error {
|
||||
|
||||
for _, backup := range backups {
|
||||
for i, backup := range backups {
|
||||
log.Infof("Restoring ChannelPoint(%v) to disk: ",
|
||||
backup.FundingOutpoint)
|
||||
|
||||
@@ -55,7 +55,7 @@ func Recover(backups []Single, restorer ChannelRestorer,
|
||||
"restore ChannelPoint(%v)",
|
||||
backup.RemoteNodePub.SerializeCompressed(),
|
||||
newLogClosure(func() string {
|
||||
return spew.Sdump(backup.Addresses)
|
||||
return spew.Sdump(backups[i].Addresses)
|
||||
}), backup.FundingOutpoint)
|
||||
|
||||
err = peerConnector.ConnectPeer(
|
||||
|
Reference in New Issue
Block a user