⚠️ Experimental: Do not use this upgrade on validator nodes
🚀 Improvement
Optimizes the staking module’s endblock processing by using a cache, significantly reducing storage access overhead and improving execution speed for archive nodes.
A new configuration is added to control the cache size
[staking]
# cache-size defines the maximum number of time-based queue entries to cache
# for unbonding validators, unbonding delegations, and redelegations.
# cache-size = 0 means unlimited cache (no size limit).
# cache-size < 0 means the cache is disabled.
# cache-size > 0 sets a size limit for the cache.
cache-size = 0