From 88093cb83819a20603e719a40b67d014bc985d4a Mon Sep 17 00:00:00 2001 From: David Hill Date: Sat, 19 Apr 2014 20:05:35 -0400 Subject: [PATCH] Use NewMsgInvSizeHint since we know the size. ok @davecgh --- peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer.go b/peer.go index 435b0366..b9754d95 100644 --- a/peer.go +++ b/peer.go @@ -426,7 +426,7 @@ func (p *peer) pushBlockMsg(sha *btcwire.ShaHash, doneChan, waitChan chan bool) if p.continueHash != nil && p.continueHash.IsEqual(sha) { hash, _, err := p.server.db.NewestSha() if err == nil { - invMsg := btcwire.NewMsgInv() + invMsg := btcwire.NewMsgInvSizeHint(1) iv := btcwire.NewInvVect(btcwire.InvTypeBlock, hash) invMsg.AddInvVect(iv) p.QueueMessage(invMsg, doneChan)