nearcore
nearcore copied to clipboard
Support shard cache updates in state-viewer
There is a tries.update_cache method get called on StoreUpdate::commit which puts fresh nodes to the shard cache. However, it is not called in state-viewer, which may show worse performance in case when there are lots of writes to the same nodes.
Example patch without caring about the design: https://github.com/Longarithm/nearcore/commit/6014cd40edaa461a38eb5eda5cc01814f2b38d22
cc @jakmeier