From db07d4280341578b52711ea9d3df99a091fddff4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 23 Aug 2016 05:50:45 -0700 Subject: [PATCH] bip150: drop peers that do not auth. --- lib/bcoin/peer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index fd0ab31a..1ea7a96d 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -329,7 +329,7 @@ Peer.prototype._onBIP151 = function _onBIP151() { this.write(this.framer.authChallenge(this.bip150.toChallenge())); return this.bip150.wait(5000, function(err) { if (err) - self._error(err, true); + return self._error(err); self._onHandshake(); }); }