From 642f3c715fdbbecd2d196cd17f8d36544fb125f4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 25 Jul 2016 01:47:08 -0700 Subject: [PATCH] peer: do not send getblocks to non-network-service peers. --- lib/bcoin/peer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index 49c2615e..1e578460 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -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;