-
Notifications
You must be signed in to change notification settings - Fork 476
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
Eval: Feature/heartbeats #6189
base: master
Are you sure you want to change the base?
Eval: Feature/heartbeats #6189
Conversation
…ticipationAccounts (#6085) Co-authored-by: John Jannotti <[email protected]>
…AccountData when rnd < 240 (#6165)
Co-authored-by: Gary Malouf <[email protected]>
ledger/apply/challenge.go
Outdated
} | ||
challengeHdr, err := headers.BlockHdr(lastChallenge) | ||
if err != nil { | ||
panic(err) |
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.
during catchup, for example, the block DB's window of blocks is moving forward really quickly, and you might reasonably encounter BlockHdr not found errors here
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 turns out you wouldn't even get an error then, it would pull the block from db. Which is good, because if we want to verify blocks with suspensions or free heartbeats in them, we need the value.
But I take your point, and I'll return the empty challenge. Which could cause either of the two things above to fail, but that's reasonable, since something is very wrong.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6189 +/- ##
==========================================
- Coverage 51.88% 50.94% -0.95%
==========================================
Files 639 642 +3
Lines 85489 85831 +342
==========================================
- Hits 44359 43723 -636
- Misses 38320 39298 +978
Partials 2810 2810 ☔ View full report in Codecov by Sentry. |
0fe2ef2
to
cab07e3
Compare
The PR to put heartbeats into main. The new heartbeats/README.md is the best place to look for explaining it.