Colm3na / polkastats-backend-v3

polkastats.io backend repository
Apache License 2.0
17 stars 15 forks source link

Store validator rewards and nominator/validator slashes for previous eras in db #141

Open mariopino opened 4 years ago

mariopino commented 4 years ago

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.