Expand description
A wrapper around bank forks that maintains a lightweight cache of bank hashes.
Notified by bank forks when a slot is dumped due to duplicate block handling, allowing for the cache to be invalidated. This ensures that the cache is always in sync with bank forks as long as the local lock is held during querying.
This can be useful to avoid read-locking the bank forks when querying bank hashes, as we only contend for the local lock during slot dumping due to duplicate blocks which should be extremely rare.