doc: /rest/block responds with 404 if block does not exist

This commit is contained in:
João Barbosa committed 2019-01-16 14:42:22 +00:00
1 parent be625f7c55
commit 0825b86b28
1 file changed
+1
+1
View File
@@ -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.