-
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
roundCowBase
: use lookup()
instead of going to ledger directly
#3173
Conversation
We can't do that. This is the one place that actually does go from the cow to the ledger. If ( from any reason ), we don't have the account preloaded, we need to have the ability to fetch it dynamically. One common use case is the transaction pool. When a new transaction is received by the node, it attempts to add it to the current block evaluator. In turn, the block evaluator would call the ledger to fetch all the required resources. |
I'm not following. |
sorry - my bad; I think that this change is fine. |
Codecov Report
@@ Coverage Diff @@
## master #3173 +/- ##
===========================================
- Coverage 43.81% 32.19% -11.63%
===========================================
Files 392 390 -2
Lines 86885 86867 -18
===========================================
- Hits 38073 27971 -10102
- Misses 42782 54739 +11957
+ Partials 6030 4157 -1873
Continue to review full report at Codecov.
|
Summary
Going to ledger directly prevents caching of accounts.
I'm looking into poor indexer import performance on testnet at rounds > 17M, and I noticed that one account is looked up a lot of times in same round.