From 120ceef984fcf8c5c10929cadccb0c4898717b5b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 16 Jan 2017 11:43:45 -0800 Subject: [PATCH] peer: timeout bip150 and bip151 properly. --- lib/net/peer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/net/peer.js b/lib/net/peer.js index b3456b10..e8e648a2 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -1440,6 +1440,7 @@ Peer.prototype.onPacket = co(function* onPacket(packet) { throw new Error('Destroyed peer sent a packet.'); if (this.bip151 + && this.bip151.job && !this.bip151.completed && packet.type !== packetTypes.ENCINIT && packet.type !== packetTypes.ENCACK) { @@ -1447,6 +1448,7 @@ Peer.prototype.onPacket = co(function* onPacket(packet) { } if (this.bip150 + && this.bip150.job && !this.bip150.completed && packet.type !== packetTypes.AUTHCHALLENGE && packet.type !== packetTypes.AUTHREPLY