-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Better Logging When Using Head Sync #7626
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7626 +/- ##
==========================================
+ Coverage 61.85% 61.87% +0.01%
==========================================
Files 422 422
Lines 29700 29723 +23
==========================================
+ Hits 18370 18390 +20
- Misses 8412 8416 +4
+ Partials 2918 2917 -1 |
@@ -431,6 +431,12 @@ func (s *Service) initializeChainInfo(ctx context.Context) error { | |||
if err != nil { | |||
return errors.Wrap(err, "could not hash head block") | |||
} | |||
finalizedState, err := s.stateGen.Resume(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a bug that caused by not running s.stateGen.Resume
here?
If yes, can you please add some descriptions for the bug? and maybe a regression test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no bug, the finalized state is accessed for info purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah not really I just saw that we resumed stategen in the normal path, so I thought it would be correct to do it here too. I used the archived state to determine the starting point of our head sync.
What type of PR is this?
Logging
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
N.A
Other notes for review