Skip to content

api: add /block/.../raw endpoints #1032

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

Merged
merged 1 commit into from
Feb 19, 2019
Merged

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Feb 19, 2019

This adds the following endpoints:

  • "/block/best/raw"
  • "/block/{ind}/raw"
  • "/block/hash/{hash}/raw"

These return a new JSON type defined by api/types.BlockRaw.

Also add api/types.BlockRaw.

use strings.Builder to avoid copying a long string
@chappjc chappjc merged commit 6b05323 into decred:master Feb 19, 2019
@chappjc chappjc deleted the api-block-raw branch February 19, 2019 22:35
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.

None yet

2 participants