From 0825b86b280c684c32c60bac9e862298c7279f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Wed, 16 Jan 2019 14:40:29 +0000 Subject: [PATCH] doc: /rest/block responds with 404 if block does not exist --- doc/REST-interface.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 18a15dc915..ff7ef6ce1c 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/.` 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.