Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R4R] modify params for Parlia consensus with 21 validators #6

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const (
resubmitAdjustChanSize = 10

// miningLogAtDepth is the number of confirmations before logging successful mining.
miningLogAtDepth = 15
miningLogAtDepth = 11

// minRecommitInterval is the minimal time interval to recreate the mining block with
// any newly arrived transactions.
Expand All @@ -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 Expand Up @@ -356,7 +356,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
commit(false, commitInterruptNewHead)

case head := <-w.chainHeadCh:
if !w.isRunning(){
if !w.isRunning() {
continue
}
clearPending(head.Block.NumberU64())
Expand Down