You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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 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). 😜 😂
runTx
accepts the optionpopulateCache
which I thought would disable cache when executing the transaction. However, currently this is failing due torunTx
usingstateManager.cache
methods such asget
andput
in 8 occasions to look up and update accounts in the trie.One suggestion is to use
stateManager
methods instead of directly usingstateManager.cache
, and move thepopulateCache
option tostateManager
, which would use cache or not underneath depending on the value ofpopulateCache
.It seems this might be the direction that was intended, as
stateManager
does have methodsgetAccount
andputAccount
which call the cache methods. However, they don't support the flag to disable cache. Is this maybe work in progress?The text was updated successfully, but these errors were encountered: