-
Notifications
You must be signed in to change notification settings - Fork 493
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
refactor: remove ledgercore.OnlineAccountData #5965
refactor: remove ledgercore.OnlineAccountData #5965
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5965 +/- ##
==========================================
+ Coverage 55.93% 56.18% +0.25%
==========================================
Files 482 482
Lines 67969 67949 -20
==========================================
+ Hits 38019 38178 +159
+ Misses 27343 27178 -165
+ Partials 2607 2593 -14 ☔ View full report in Codecov by Sentry. |
9b14d1a
to
7a50094
Compare
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.
I think this is mergable now. Thanks for waiting on the incentives PR.
7a50094
to
09e05a5
Compare
type OnlineAccountData struct { | ||
MicroAlgosWithRewards basics.MicroAlgos | ||
VotingData | ||
IncentiveEligible bool |
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.
They're not exact duplicates, I just noticed, because basics.OnlineAccountData has LastHeartbeat/LastProposed, but ledgercore.OnlineAccountData did not have it. So there are some conversion functions that didn't set LastHeartbeat/LastProposed on ledgercore.OnlineAccountData, because it didn't have these fields, but were leaving them empty on conversions from e.g. basics.AccountData => basics.OnlineAccountData because of this change ... addressing this in #6085
Summary
Use
basics.OnlineAccountData
instead since they are exact duplicates.Test Plan
Existing tests.
Notes
Merge after #5757 due to conflicts