-
Notifications
You must be signed in to change notification settings - Fork 471
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: move non-lookup methods into a storage package #4830
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4830 +/- ##
==========================================
- Coverage 53.99% 53.78% -0.21%
==========================================
Files 420 421 +1
Lines 53765 53789 +24
==========================================
- Hits 29029 28932 -97
- Misses 22359 22513 +154
+ Partials 2377 2344 -33
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
8129aae
to
e3b3ab1
Compare
e3b3ab1
to
93f7678
Compare
93f7678
to
60efece
Compare
"github.com/algorand/go-algorand/util/db" | ||
) | ||
|
||
type accountsV2Reader struct { |
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.
why v2? is there is no accountsReader but AccountsReader. Call this differently to emphasize it is totals + round and not account data
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 will end up all in the same struct down the line.
A lot of this methods where free floating in the accountsdb file and called with the tx generated by doing atomics on the trackerDB.
accountdb.go
into a storage package (3 of N)
Summary
Moving free methods that were related to the accounts db.
Staging them on a second type
accountsV2ReaderWriter
while I move them out before figuring out how to put it all in a single thing.Previous parts of this refactor:
Test Plan
Existing tests.