peer: do not send getblocks to non-network-service peers.
This commit is contained in:
parent
2b783e8f6e
commit
642f3c715f
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user