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

Eval: Feature/heartbeats #6189

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Eval: Feature/heartbeats #6189

wants to merge 13 commits into from

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Dec 4, 2024

The PR to put heartbeats into main. The new heartbeats/README.md is the best place to look for explaining it.

@jannotti jannotti changed the title Feature/heartbeats Eval: Feature/heartbeats Dec 4, 2024
@jannotti jannotti self-assigned this Dec 4, 2024
data/transactions/heartbeat.go Outdated Show resolved Hide resolved
}
challengeHdr, err := headers.BlockHdr(lastChallenge)
if err != nil {
panic(err)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 62.00000% with 171 lines in your changes missing coverage. Please review.

Project coverage is 50.94%. Comparing base (b7b3e5e) to head (d5286e3).

Files with missing lines Patch % Lines
daemon/algod/api/client/restClient.go 0.00% 43 Missing ⚠️
ledger/eval/eval.go 72.34% 17 Missing and 9 partials ⚠️
libgoal/libgoal.go 0.00% 16 Missing ⚠️
crypto/onetimesig.go 0.00% 14 Missing ⚠️
ledger/apply/heartbeat.go 72.09% 6 Missing and 6 partials ⚠️
heartbeat/service.go 84.93% 6 Missing and 5 partials ⚠️
cmd/loadgenerator/main.go 0.00% 6 Missing ⚠️
data/transactions/transaction.go 33.33% 5 Missing and 1 partial ⚠️
ledger/ledger.go 76.00% 3 Missing and 3 partials ⚠️
data/transactions/logic/assembler.go 0.00% 5 Missing ⚠️
... and 11 more
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.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants