good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Erigon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
a
Erigon
Commits
124e004b
Unverified
Commit
124e004b
authored
2 years ago
by
Enrique Jose Avila Asapche
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed stuck dev chain (#4261)
parent
d4d4c2ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
turbo/stages/stageloop.go
+15
-14
15 additions, 14 deletions
turbo/stages/stageloop.go
with
15 additions
and
14 deletions
turbo/stages/stageloop.go
+
15
−
14
View file @
124e004b
...
...
@@ -45,10 +45,21 @@ func StageLoop(
initialCycle
:=
true
for
{
select
{
case
<-
ctx
.
Done
()
:
return
default
:
if
!
hd
.
POSSync
()
{
// Wait for delivery of any p2p headers here to resume the stage loop
// Since StageLoopStep creates RW database transaction, the mining loop can only do its work (it also requires creating RW transaction)
// when the control flow is outside StageLoopStep function. Therefore wait here to give mining loop this opportunity
select
{
case
<-
ctx
.
Done
()
:
return
case
<-
hd
.
DeliveryNotify
:
}
}
else
{
select
{
case
<-
ctx
.
Done
()
:
return
default
:
}
}
start
:=
time
.
Now
()
...
...
@@ -102,16 +113,6 @@ func StageLoop(
case
<-
c
:
}
}
if
!
hd
.
POSSync
()
{
// Wait for delivery of any p2p headers here to resume the stage loop
// Since StageLoopStep creates RW database transaction, the mining loop can only do its work (it also requires creating RW transaction)
// when the control flow is outside StageLoopStep function. Therefore wait here to give mining loop this opportunity
select
{
case
<-
ctx
.
Done
()
:
return
case
<-
hd
.
DeliveryNotify
:
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment