Skip to content
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

Using runTx with disabled cache #353

Closed
s1na opened this issue Sep 24, 2018 · 5 comments
Closed

Using runTx with disabled cache #353

s1na opened this issue Sep 24, 2018 · 5 comments

Comments

@s1na
Copy link
Contributor

s1na commented Sep 24, 2018

runTx accepts the option populateCache which I thought would disable cache when executing the transaction. However, currently this is failing due to runTx using stateManager.cache methods such as get and put in 8 occasions to look up and update accounts in the trie.

One suggestion is to use stateManager methods instead of directly using stateManager.cache, and move the populateCache option to stateManager, which would use cache or not underneath depending on the value of populateCache.

It seems this might be the direction that was intended, as stateManager does have methods getAccount and putAccount which call the cache methods. However, they don't support the flag to disable cache. Is this maybe work in progress?

@holgerd77
Copy link
Member

Related to the work in #268.

@holgerd77
Copy link
Member

Is this still an issue? //cc @ryanio

@ryanio
Copy link
Contributor

ryanio commented Dec 3, 2020

hm we don't have the populateCache option anymore in runTx. i believe we have a more sophisticated cache in the statemanger now, probably by design as @s1na kept working on it.

@s1na would you consider this issue resolved?

@s1na
Copy link
Contributor Author

s1na commented Dec 4, 2020

wow this issue is from even before I joined the team so I'm a bit hazy on the details :) If the populateCache option is not present anymore we can close this.

@s1na s1na closed this as completed Dec 4, 2020
@holgerd77
Copy link
Member

@s1na we proudly have issues still open within the repo dating back to 2016 #114, maybe if this ages a bit more we can sell this high if it ages a bit more (like wine or so). 😜 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants