Is your feature request related to a problem? Please describe.
- When dirty prune cache is too low, the pruning cannot reduce the node cache.
- This will cause it to keep re-pruning the next block with very little progress.
- This is a problem on larger network and probably mainnet as gas limit increase.
Describe the solution you'd like
- Warn when the pruning cache is too low.
- Specifically if the size of the dirty prune cache after pruning is more than 80% of its size before, log a warn.
Describe alternatives you've considered
- Have a minimum number of block between pruning. This is still kinda a patch especially for network with very short slot time.
Additional context
- Base network runs into this problem.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context