peer: correct variable name, print error
This commit is contained in:
parent
13098a595a
commit
780e1bbead
9
peer.go
9
peer.go
@ -836,11 +836,11 @@ func newChanMsgStream(p *peer, cid lnwire.ChannelID) *msgStream {
|
|||||||
fmt.Sprintf("Update stream for ChannelID(%x) exiting", cid[:]),
|
fmt.Sprintf("Update stream for ChannelID(%x) exiting", cid[:]),
|
||||||
1000,
|
1000,
|
||||||
func(msg lnwire.Message) {
|
func(msg lnwire.Message) {
|
||||||
_, isChanSycMsg := msg.(*lnwire.ChannelReestablish)
|
_, isChanSyncMsg := msg.(*lnwire.ChannelReestablish)
|
||||||
|
|
||||||
// If this is the chanSync message, then we'll deliver
|
// If this is the chanSync message, then we'll deliver
|
||||||
// it immediately to the active link.
|
// it immediately to the active link.
|
||||||
if !isChanSycMsg {
|
if !isChanSyncMsg {
|
||||||
// We'll send a message to the funding manager
|
// We'll send a message to the funding manager
|
||||||
// and wait iff an active funding process for
|
// and wait iff an active funding process for
|
||||||
// this channel hasn't yet completed. We do
|
// this channel hasn't yet completed. We do
|
||||||
@ -875,8 +875,9 @@ func newChanMsgStream(p *peer, cid lnwire.ChannelID) *msgStream {
|
|||||||
if chanLink == nil {
|
if chanLink == nil {
|
||||||
link, err := p.server.htlcSwitch.GetLink(cid)
|
link, err := p.server.htlcSwitch.GetLink(cid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
peerLog.Errorf("recv'd update for unknown "+
|
peerLog.Errorf("recv'd update for "+
|
||||||
"channel %v from %v", cid, p)
|
"unknown channel %v from %v: "+
|
||||||
|
"%v", cid, p, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
chanLink = link
|
chanLink = link
|
||||||
|
Loading…
Reference in New Issue
Block a user