Skip to content

Commit ff6549c

Browse files
committed
fix: update rest info on block size and json
1 parent ba348db commit ff6549c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/REST-interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To query for a confirmed transaction, enable the transaction index via "txindex=
3030
Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats.
3131
Responds with 404 if the block doesn't exist.
3232

33-
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.
33+
The HTTP request and response are both handled entirely in-memory.
3434

3535
With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response.
3636

src/rest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static bool rest_headers(HTTPRequest* req,
206206
return true;
207207
}
208208
default: {
209-
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: .bin, .hex)");
209+
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: .bin, .hex, .json)");
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)