Is your feature request related to a problem? Please describe.
We are not storing validator rewards and nominator/validator slashes for previous eras in the database.
Describe the solution you'd like
Detect in block harvester when era changes (eraProgress = 1) and query/store validator rewards and nominator/validator slashes for the previous era if current_era - history_depth < harvested_era.
Is your feature request related to a problem? Please describe. We are not storing validator rewards and nominator/validator slashes for previous eras in the database.
Describe the solution you'd like Detect in block harvester when era changes (
eraProgress = 1
) and query/store validator rewards and nominator/validator slashes for the previous era ifcurrent_era - history_depth < harvested_era
.