Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak block indexing to use height as the primary key (#4757)
Every block has a unique height, we almost always want to join with other tables based on block height, the serial ID has no meaning: ergo, we should get rid of the id, and just use height as the primary key. There was no index on height either, which would have made joining on it slow. Also removed unwraps and expects and as in favor of actual errors. ## Checklist before requesting a review - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > Indexer changes
- Loading branch information