Wladimir J. van der Laan
4f1524966a
Replace direct use of 0 with SetNull and IsNull
...
Replace x=0 with .SetNull(),
x==0 with IsNull(), x!=0 with !IsNull().
Replace uses of uint256(0) with uint256().
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Philip Kaufmann
27df4123c4
make all catch() arguments const
...
- I saw this on http://en.cppreference.com/w/cpp/language/try_catch and
thought it would be a good idea
- also unify used format to better be able to search for exception
uses in our codebase
10 years ago
Daniel Kraft
7c8e4c5cfb
Make pass-by-ref arguments const.
...
Make some of the arguments in rest.cpp, that are passed by
reference but never modified, const to emphasise that.
10 years ago
Pieter Wuille
f676c80f43
Add /rest/headers
10 years ago
Jonas Schnelli
73351c3686
[REST] /rest/block response with full tx details
...
- rest block request returns full unfolded tx details
- /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
10 years ago
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
10 years ago
Jonas Schnelli
8a5c9513ba
[REST] make selection of output-format mandatory, support dot url syntax
...
1. Remove the default format (binary) because `rest/block/<hash>/Hex` would end up delivering binary data.
2. List available formats when chosen format was not found (reduces need for documentation)
3. Change url syntax to dot extension like format chosing (like `rest/tx/<hash>.json`
10 years ago
Jonas Schnelli
78bdc8103f
[REST] give an appropriate response in warmup phase
10 years ago
Jonas Schnelli
210eba9fdb
[REST] fix headersonly flag for BINARY responses
10 years ago
Philip Kaufmann
a01fa3035f
minor style cleanup after HTTP rest interface merge
...
- no code changes
10 years ago
Pieter Wuille
e2f30d547f
Properly lock cs_main in rest_block
10 years ago
Jeff Garzik
7715c84747
HTTP REST: minor fixes
...
1) const-ify internal helper ParseHashStr()
2) use HTTPError() helper when returning HTTP_NOT_FOUND
10 years ago
Jeff Garzik
e2655e0ab1
Add unauthenticated HTTP REST interface to public blockchain data.
10 years ago