Skip to content

Commit

Permalink
doc: /rest/block responds with 404 if block does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Jan 16, 2019
1 parent be625f7 commit 0825b86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/REST-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ For full TX query capability, one must enable the transaction index via "txindex
`GET /rest/block/notxdetails/<BLOCK-HASH>.<bin|hex|json>`

Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats.
Responds with 404 if the block doesn't exist.

The HTTP request and response are both handled entirely in-memory, thus making maximum memory usage at least 2.66MB (1 MB max block, plus hex encoding) per request.

Expand Down

0 comments on commit 0825b86

Please sign in to comment.