Files
prysm/changelog/manu_tracked_validators_ttl.md
Manu NALEPA 93c27340e4 Tracked validator TTL (#14957)
* `TrackedValidatorsCache`: Implement a 1-hour TTL by uding `go-cache`.

* `TrackedValidatorsCache`: Add the `ItemCount` method.

* `TrackedValidatorsCache`: Add the `Indices` method.

* Add changelog.

* `TrackedValidatorsCache`: Add prometheus metrics.

* Update beacon-chain/cache/tracked_validators.go

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2025-02-19 18:04:13 +00:00

225 B

Added

  • Tracked validators cache: Added the ItemCount method.
  • Tracked validators cache: Added the Indices method.

Changed

  • Tracked validators cache: Remove validators from the cache if not seen after 1 hour.