mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
fix: update rest info on block size and json
This commit is contained in:
parent
ba348dbc51
commit
ff6549c3c8
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ To query for a confirmed transaction, enable the transaction index via "txindex=
|
||||||
Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats.
|
Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats.
|
||||||
Responds with 404 if the block doesn't exist.
|
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.
|
The HTTP request and response are both handled entirely in-memory.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@ static bool rest_headers(HTTPRequest* req,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: .bin, .hex)");
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: .bin, .hex, .json)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue