-
Notifications
You must be signed in to change notification settings - Fork 473
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
Ledger: Refactor online totals #3770
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3770 +/- ##
==========================================
- Coverage 49.68% 49.66% -0.02%
==========================================
Files 392 392
Lines 68588 68585 -3
==========================================
- Hits 34076 34063 -13
- Misses 30766 30779 +13
+ Partials 3746 3743 -3
Continue to review full report at Codecov.
|
Please don't forget to elimimate account update Totals - I think that now it's only used by tests. |
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.
Changes here looks great, but I'd like @algorandskiy to be familiar with these changes as well before merging this in.
Summary
The existing Ledger.OnlineTotals is going ( at the end of the 320 project ), be using the onlineAccountsTracker to get its information from.
But unlike the existing l.accts.Totals(rnd) call, it won't get the totals, but only the amount of online totals ( i.e. basics.MicroAlgos ).
Prepare the Ledger implementation for that change by deprecating the accountUpdates.Totals and naming it OnlineTotals. As such, it would return just the online portion of that structure ( i.e. totals.Online.Money ).
Test Plan
Ran existing tests on Ledger.OnlineTotals