-
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
Move accountdb schema migration to trackerdb.go #2984
Move accountdb schema migration to trackerdb.go #2984
Conversation
c0a69c7
to
9aa9c22
Compare
Codecov Report
@@ Coverage Diff @@
## master #2984 +/- ##
==========================================
+ Coverage 40.00% 40.01% +0.01%
==========================================
Files 383 384 +1
Lines 86736 86749 +13
==========================================
+ Hits 34699 34713 +14
- Misses 46425 46426 +1
+ Partials 5612 5610 -2
Continue to review full report at Codecov.
|
9aa9c22
to
8129027
Compare
Not sure why it started the Branch build |
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.
please review error/info messages and update the method names; looks good otherwise.
8129027
to
2d8f334
Compare
## Summary * Moved code from **acctupdates.go** to **trackerdb.go**. * Extracted db creation and init from`accountsInitialize` to `trackerDBInitialize` * `reloadLedger` now calls `trackerDBInitialize` right after block db init * `reloadLedger` also has post-creation actions like vacuuming Limitations: 1. Tables creation still calls `accountsInit` for initial tables creation and inserting genesis accounts. 2. Migration code still have some business logic. ## Test Plan Use existing test suite
Summary
accountsInitialize
totrackerDBInitialize
reloadLedger
now callstrackerDBInitialize
right after block db initreloadLedger
also has post-creation actions like vacuumingLimitations:
accountsInit
for initial tables creation and inserting genesis accounts.Test Plan
Use existing test suite