Remove relay log message and update comment.
This commit is contained in:
parent
b58787f87a
commit
f5c03696f7
1 changed files with 2 additions and 3 deletions
5
peer.go
5
peer.go
|
@ -958,8 +958,8 @@ out:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new inventory message, populate it with as
|
// Create and send as many inv messages as needed to
|
||||||
// much per
|
// drain the inventory send queue.
|
||||||
invMsg := btcwire.NewMsgInv()
|
invMsg := btcwire.NewMsgInv()
|
||||||
for e := p.invSendQueue.Front(); e != nil; e = p.invSendQueue.Front() {
|
for e := p.invSendQueue.Front(); e != nil; e = p.invSendQueue.Front() {
|
||||||
iv := p.invSendQueue.Remove(e).(*btcwire.InvVect)
|
iv := p.invSendQueue.Remove(e).(*btcwire.InvVect)
|
||||||
|
@ -981,7 +981,6 @@ out:
|
||||||
p.addKnownInventory(iv)
|
p.addKnownInventory(iv)
|
||||||
}
|
}
|
||||||
if len(invMsg.InvList) > 0 {
|
if len(invMsg.InvList) > 0 {
|
||||||
log.Infof("Relaying %d inv to %v", len(invMsg.InvList), p.conn.RemoteAddr())
|
|
||||||
p.writeMessage(invMsg)
|
p.writeMessage(invMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue