peer: do not send getblocks to non-network-service peers.

This commit is contained in:
Christopher Jeffrey 2016-07-25 01:47:08 -07:00
parent 2b783e8f6e
commit 642f3c715f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2237,6 +2237,9 @@ Peer.prototype.sync = function sync(callback) {
if (this.syncSent)
return;
if (!this.version.hasNetwork())
return;
if (this.type !== Peer.types.LOADER) {
if (!this.chain.isFull())
return;