Use NewMsgInvSizeHint since we know the size.
ok @davecgh
This commit is contained in:
parent
a4673597bd
commit
88093cb838
1 changed files with 1 additions and 1 deletions
2
peer.go
2
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) {
|
if p.continueHash != nil && p.continueHash.IsEqual(sha) {
|
||||||
hash, _, err := p.server.db.NewestSha()
|
hash, _, err := p.server.db.NewestSha()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
invMsg := btcwire.NewMsgInv()
|
invMsg := btcwire.NewMsgInvSizeHint(1)
|
||||||
iv := btcwire.NewInvVect(btcwire.InvTypeBlock, hash)
|
iv := btcwire.NewInvVect(btcwire.InvTypeBlock, hash)
|
||||||
invMsg.AddInvVect(iv)
|
invMsg.AddInvVect(iv)
|
||||||
p.QueueMessage(invMsg, doneChan)
|
p.QueueMessage(invMsg, doneChan)
|
||||||
|
|
Loading…
Reference in a new issue