From 161fe6e2a1770364b68363a607100ffdcacc7161 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 1 Mar 2017 09:25:26 -0800 Subject: [PATCH] net: increase timeout for getdata. see #144. --- lib/net/peer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/peer.js b/lib/net/peer.js index 75fda90e..9541fb12 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -1247,7 +1247,7 @@ Peer.prototype.addTimeout = function addTimeout(packet) { this.request(packetTypes.HEADERS, timeout * 2); break; case packetTypes.GETDATA: - this.request(packetTypes.DATA, timeout); + this.request(packetTypes.DATA, timeout * 2); break; case packetTypes.GETBLOCKTXN: this.request(packetTypes.BLOCKTXN, timeout);