diff options
| author | João Barbosa <[email protected]> | 2019-01-16 14:40:29 +0000 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2019-01-16 14:42:22 +0000 |
| commit | 0825b86b280c684c32c60bac9e862298c7279f27 (patch) | |
| tree | 7ba6e4e7c9f493ddae48bc9f54dadb841532be76 /doc | |
| parent | doc: Explain empty result of /rest/headers (diff) | |
| download | discoin-0825b86b280c684c32c60bac9e862298c7279f27.tar.xz discoin-0825b86b280c684c32c60bac9e862298c7279f27.zip | |
doc: /rest/block responds with 404 if block does not exist
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/REST-interface.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 18a15dc91..ff7ef6ce1 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -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. |