-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update finality depth check headtracker #13089
Update finality depth check headtracker #13089
Conversation
Signed-off-by: Silas Lenihan <[email protected]>
a6d7c2b
to
fc9c081
Compare
e60f5dc
to
c20bfd0
Compare
common/headtracker/head_tracker.go
Outdated
if head.BlockNumber() < prevUnFinalizedHead { | ||
prevLatestFinalized := prevHead.LatestFinalizedHead() | ||
|
||
if prevLatestFinalized != nil && prevLatestFinalized.IsValid() && head.BlockNumber() <= prevLatestFinalized.BlockNumber() { |
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.
Add isValid check
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.
It is already checking prevLatestFinalized.IsValid()
a953dcc
to
216c11a
Compare
87fe2ca
to
e854293
Compare
Quality Gate passedIssues Measures |
Update finality check in HeadTracker to use chain specific
LatestFinalizedHead
Relevant ticket: BCI-2919