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

Real db support for block query #5459

Merged
merged 8 commits into from
Jul 27, 2020
Merged

Real db support for block query #5459

merged 8 commits into from
Jul 27, 2020

Conversation

bkase
Copy link
Member

@bkase bkase commented Jul 21, 2020

Don't try to imagine all the code I wrote but then deleted because I realized it could be done better.

All the queries are hooked together and it runs with the ./block.sh in test/ with the blocks that are generated in dev mode that only contain coinbases.

Further testing will follow when more work is put into the testing harness for this thing

@bkase bkase marked this pull request as ready for review July 22, 2020 04:36
@bkase bkase requested review from a team as code owners July 22, 2020 04:36
@bkase bkase changed the title Starts adding real db support for block query Real db support for block query Jul 22, 2020
@bkase bkase force-pushed the feature/block-api branch from 3919a6f to 60d47b1 Compare July 22, 2020 04:51
@bkase bkase force-pushed the feature/db-queries branch from 67b41bc to f803b70 Compare July 22, 2020 04:59
@bkase
Copy link
Member Author

bkase commented Jul 22, 2020

Having internet issues so I can’t push — note to reviewers. I made all changes suggested by @mrmr1993 and it is much nicer with the pk joins.

* it is important to select only the block on the canonical chain for a
* given height, and not an arbitrary one.
*
* This query recursively traverses the blockchain from the longest tip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭

@bkase bkase force-pushed the feature/block-api branch from 60d47b1 to 6d2b8cd Compare July 23, 2020 21:54
bkase added 6 commits July 23, 2020 15:19
Note: This only tests with the coinbase internal command. But hey at
least we know the block and internal command queries work which is cool.
* Comment on recursive query
* Explicit projection of sql fields
* INNER JOIN all the public keys
@bkase bkase force-pushed the feature/db-queries branch from f7ae44a to 7054b70 Compare July 23, 2020 22:24
@bkase bkase added ready-to-merge-into-develop ci-build-me Add this label to trigger a circle+buildkite build for this branch and removed ready for review ready-to-merge-into-develop labels Jul 23, 2020
Base automatically changed from feature/block-api to develop July 25, 2020 02:50
@bkase bkase added ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR and removed ready-to-merge-into-develop labels Jul 25, 2020
@bkase bkase merged commit 65bfbdb into develop Jul 27, 2020
@bkase bkase deleted the feature/db-queries branch July 27, 2020 17:19
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.

2 participants