Fantom-foundation / Sonic

go-opera fork for Carmen and Tosca integration
GNU Lesser General Public License v3.0
14 stars 16 forks source link

Re-add dagIndexer cache (with proper closing) #149

Closed thaarok closed 3 months ago

thaarok commented 3 months ago

This adds a cache into dagIndexer's VecFlushable.

The cache has been removed to resolve issue #85 - the cache have not been flushed correctly on the node shutdown, which resulted in occasional database breaking on shutdown. This PR re-introduce the cache with proper closing (flushing of the backedMap into the epoch db).