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

Add block endpoints #1

Merged
merged 18 commits into from
Jan 8, 2024
Merged

Add block endpoints #1

merged 18 commits into from
Jan 8, 2024

Conversation

chris124567
Copy link
Member

@chris124567 chris124567 commented Jan 4, 2024

  • Support storing basic fields of a block and miner payouts
  • Add support for /api/explorer/tip
  • Add support for /api/explorer/block/id/:id and /api/explorer/block/height/:height (note: blocks are not returned with any transactions because that has not been added yet)

persist/sqlite/txn.go Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
cmd/explored/node.go Outdated Show resolved Hide resolved
explorer/explorer.go Outdated Show resolved Hide resolved
persist/sqlite/query.go Outdated Show resolved Hide resolved
persist/sqlite/query.go Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
persist/sqlite/init.sql Outdated Show resolved Hide resolved
persist/sqlite/init.sql Show resolved Hide resolved
persist/sqlite/init.sql Outdated Show resolved Hide resolved
…ds to be more clear, and use snake_case SQL table names
persist/sqlite/init.sql Outdated Show resolved Hide resolved
persist/sqlite/txn.go Outdated Show resolved Hide resolved
cmd/explored/node.go Outdated Show resolved Hide resolved
@n8maninger
Copy link
Member

This looks good. Great work.

@n8maninger n8maninger merged commit 4508fbd into master Jan 8, 2024
6 checks passed
@n8maninger n8maninger deleted the add-block branch January 8, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants