-
Notifications
You must be signed in to change notification settings - Fork 492
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: preload resources argument in EvalForIndexer #3019
ledger: preload resources argument in EvalForIndexer #3019
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3019 +/- ##
========================================
Coverage 43.84% 43.85%
========================================
Files 385 385
Lines 86329 86754 +425
========================================
+ Hits 37852 38042 +190
- Misses 42515 42704 +189
- Partials 5962 6008 +46
Continue to review full report at Codecov.
|
func saveResourcesInCowBase(resources EvalForIndexerResources, base *roundCowBase) { | ||
for address, accountData := range resources.accounts { | ||
if accountData == nil { | ||
base.accounts[address] = basics.AccountData{} | ||
} else { | ||
base.accounts[address] = *accountData | ||
} | ||
} | ||
|
||
return res | ||
base.creators = resources.creators | ||
} |
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.
This method being placed here is wrong; I'm planning on merging this functionality with the startEvaluator, but I'll be doing that after merging this code in, as other structural changes are already pending and I'd rather avoid blocking those. @tolikzinovyev @algorandskiy
## Summary rebase Tolik's PR on master; this PR add the ability for the indexer to preload account data so that it would be used by the evaluator. ## Test Plan Existing unit tests updated.
Summary
rebase Tolik's PR on master; this PR add the ability for the indexer to preload account data so that it would be used by the evaluator.
Test Plan
Existing unit tests updated.