input-output-hk / mantis

A Scala based client for Ethereum-like Blockchains.
Apache License 2.0
231 stars 75 forks source link

[ETCM-1048] Remove bestKnownBlockAndLatestCheckpoint cache #1092

Closed leo-bogastry closed 3 years ago

leo-bogastry commented 3 years ago

Description

Continuing the effort of removing the desynchronization between caches and RocksDB the AtomicReference[BestBlockLatestCheckpointNumbers] used as cache was removed and replaced by persistence in RocksDB.

Testing

This branch has been tested against mainnet, deployed in Staging and tested against the ERC20 tests. Report here: https://buildkite.com/input-output-hk/mantis-automation/builds/7468#_