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
The AccountsCache type holds a cache in memory of the accounts and storage slots which have recently been accessed. This data structure should periodically be cleared in order to avoid memory bloat. Currently the call to persist in the process block function will check if ClearCache is set in the VM flags: db.persist(clearEmptyAccount, ClearCache in vmState.flags)
The VM flag is currently not set anywhere in the code base and therefore the AccountsCache is never cleared. Perhaps the flag should be set by the synchronizer(snap, full, or beacon sync).
The text was updated successfully, but these errors were encountered:
web3-developer
changed the title
AccountsCache never cleared
AccountsCache not being cleared
Mar 19, 2024
See the discussion here for some context:
#2072 (comment)
The AccountsCache type holds a cache in memory of the accounts and storage slots which have recently been accessed. This data structure should periodically be cleared in order to avoid memory bloat. Currently the call to persist in the process block function will check if ClearCache is set in the VM flags:
db.persist(clearEmptyAccount, ClearCache in vmState.flags)
The VM flag is currently not set anywhere in the code base and therefore the AccountsCache is never cleared. Perhaps the flag should be set by the synchronizer(snap, full, or beacon sync).
The text was updated successfully, but these errors were encountered: