Repository navigation
v0.30.1
Pre-release
Pre-release
v0.30.1 is a recommended, but not critical upgrade to the Pectra-ready v0.30.0 release.
This patch fixes caching registerValidator requests for SSZ-encoded payloads (re-validating BLS signatures is heavy on CPU and should be avoided).
Changes
- Fixing registerValidator cache misses in #720
Impact
- Cached registrations reduce the number of BLS signature validations
- Increased Redis cache-hit rate
- Increased Redis storage: "Bytes Used For Cache" doubles (because now storing the full registration in cache, instead of only the timestamp).
- Improved registerValidator logging
Background
The timestamp in validator registrations are updated frequently, which made the API revalidate every incoming validator registration. The implemented solution stores the full registration in Redis (instead of only the timestamp), and discards any registrations that wouldn't change any fields anyway.