From 154c0d0617416acb2ce6b26dc4327d4fc0012d4b Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Mon, 15 Jun 2020 17:11:06 +0800 Subject: [PATCH] update stale depth --- eth/fetcher/block_fetcher.go | 2 +- miner/worker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go index 7690a53862..d6951d2f17 100644 --- a/eth/fetcher/block_fetcher.go +++ b/eth/fetcher/block_fetcher.go @@ -37,7 +37,7 @@ const ( ) const ( - maxUncleDist = 7 // Maximum allowed backward distance from the chain head + maxUncleDist = 11 // Maximum allowed backward distance from the chain head maxQueueDist = 32 // Maximum allowed distance from the chain head to queue hashLimit = 256 // Maximum number of unique blocks a peer may have announced blockLimit = 64 // Maximum number of unique blocks a peer may have delivered diff --git a/miner/worker.go b/miner/worker.go index fd7ac76e93..4734f966bc 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -75,7 +75,7 @@ const ( intervalAdjustBias = 200 * 1000.0 * 1000.0 // staleThreshold is the maximum depth of the acceptable stale block. - staleThreshold = 7 + staleThreshold = 11 ) var (