Fix commission rate data corruption #144
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Due to an earlier bug validators commissions rates wasn’t adjusted on chain parameter updates. This was fixed in PR
https://github.com/Concordium/concordium-scan/pull/136/files#
Corrupted data was however not fixed which is handled in this PR.
Error is now visible in the CCD scan on stagenet since we now compare the actual payday commission rates with the latest change received from the node.
https://github.com/Concordium/concordium-scan/pull/139/files
#143
In cases where the latest commission rate change was due to a chain update, the effect has never been updated in the database and indicators are wrongly shown.
Changes
Checklist
hard-to-understand areas.