Return checkpoint IDs in checkpoints/list similar to checkpoint/{number}. In Erigon at the moment, we have to infer the checkpoint ID by checking its index in a sorted list of checkpoints. Returning the checkpoint ID will let us rely on Heimdall's IDs and reduce the chance of any discrepancies.
Changes
[x] Bugfix (non-breaking change that solves an issue)
[ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
[ ] Changes only for a subset of nodes
Checklist
[x] I have added at least 2 reviewer or the whole pos-v1 team
[x] I have added sufficient documentation in code
[x] I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply
Cross repository changes
[ ] This PR requires changes to bor
In case link the PR here:
[ ] This PR requires changes to matic-cli
In case link the PR here:
Testing
[x] I have added unit tests
[ ] I have added tests to CI
[ ] I have tested this code manually on local environment
[ ] I have tested this code manually on remote devnet using express-cli
[x] I have tested this code manually on mumbai or amoy
Description
Return checkpoint IDs in
checkpoints/list
similar tocheckpoint/{number}
. In Erigon at the moment, we have to infer the checkpoint ID by checking its index in a sorted list of checkpoints. Returning the checkpoint ID will let us rely on Heimdall's IDs and reduce the chance of any discrepancies.Changes
Checklist
Cross repository changes
Testing
Manual tests
The checkpoints were matched to the ones returned by
checkpoint/{number}
.