net: increase timeout for getdata. see #144.

This commit is contained in:
Christopher Jeffrey 2017-03-01 09:25:26 -08:00
parent 23ca2cc65f
commit 161fe6e2a1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);