Skip to content

Commit

Permalink
update stale depth
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Jun 15, 2020
1 parent b72be12 commit 154c0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 154c0d0

Please sign in to comment.