diff --git a/lib/net/peer.js b/lib/net/peer.js index c024d58d..876a595f 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -197,7 +197,7 @@ Peer.RESPONSE_TIMEOUT = 30000; * @default */ -Peer.BLOCK_TIMEOUT = 60000; +Peer.BLOCK_TIMEOUT = 120000; /** * Max number of requested items. diff --git a/lib/net/pool.js b/lib/net/pool.js index 879acbab..16c697ed 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -1883,6 +1883,10 @@ Pool.prototype._handleHeaders = co(function* handleHeaders(peer, packet) { headers.length, peer.hostname()); + // If we received a valid header + // chain, consider this a "block". + peer.blockTime = util.ms(); + // Request the blocks we just added. if (checkpoint) { this.headerChain.shift();