peer: fix logging message when receiving updates for unknown channel

The previous logging message was broken as that target chanpoint was
being overshadowed by the local variable declaration. The new logging
message will properly print the unknown channel point as well as the
peer who sent the message.
This commit is contained in:
Olaoluwa Osuntokun 2017-01-22 14:36:59 -08:00
parent 8c4b5ae0fc
commit 97bb8744c4
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -450,14 +450,14 @@ out:
// Dispatch the commitment update message to the proper
// active goroutine dedicated to this channel.
p.htlcManMtx.Lock()
targetChan, ok := p.htlcManagers[*targetChan]
channel, ok := p.htlcManagers[*targetChan]
p.htlcManMtx.Unlock()
if !ok {
peerLog.Errorf("recv'd update for unknown channel %v",
targetChan)
peerLog.Errorf("recv'd update for unknown "+
"channel %v from %v", targetChan, p)
continue
}
targetChan <- nextMsg
channel <- nextMsg
}
}