Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rosetta, add epoch data columns to SQL #6618

Merged
merged 4 commits into from
Nov 7, 2020
Merged

Conversation

psteckler
Copy link
Member

In Rosetta, the SQL queries for blocks were missing the new epoch data columns. Added those in this PR.

Also, the recursive query for block height adds a recursion-stopper, because the genesis block's parent id is the block id.

@psteckler psteckler added ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR labels Nov 6, 2020
@deepthiskumar
Copy link
Member

How/where is the epoch data going to be used in rosetta?

@psteckler
Copy link
Member Author

How/where is the epoch data going to be used in rosetta?

It isn't, as far as I know.

But Rosetta uses the Caqti type from the archive lib for block queries, so the actual query needs to mention all the components of that type.

The other solution would be to create a new Caqti type for Rosetta, and elide the unused fields. I believe there are other block fields not used in Rosetta. It seemed simpler to make the change in this PR.

@mergify mergify bot merged commit e63e19c into develop Nov 7, 2020
@mergify mergify bot deleted the fix/rosetta-epoch-data branch November 7, 2020 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants