net: only add timeouts for outbound peers.
This commit is contained in:
parent
a6c1e8c339
commit
dbaae30700
@ -1093,6 +1093,9 @@ Peer.prototype.maybeStall = function maybeStall() {
|
||||
Peer.prototype.addTimeout = function addTimeout(packet) {
|
||||
var timeout = Peer.RESPONSE_TIMEOUT;
|
||||
|
||||
if (!this.outbound)
|
||||
return;
|
||||
|
||||
switch (packet.type) {
|
||||
case packetTypes.MEMPOOL:
|
||||
this.request(packetTypes.INV, timeout);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user