Jorge Timón
9dd793f499
TRIVIAL: Missing includes
9 years ago
Jonas Schnelli
c45c7ea0fa
[REST] add JSON support for /rest/headers/
9 years ago
Luke Dashjr
e617fe2578
Fix various warnings
...
Found while building on Debian 7
10 years ago
Jonas Schnelli
9a8897f4ac
Remove JSON Spirit wrapper, remove JSON Spirit leftovers
...
- implement find_value() function for UniValue
- replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper
- remove JSON Spirit sources
10 years ago
Jonas Schnelli
3df0411ad9
remove JSON Spirit UniValue wrapper
10 years ago
Jonas Schnelli
6c7bee0624
expicit set UniValue type to avoid empty values
10 years ago
Jonas Schnelli
53b4671a9d
extend conversion to UniValue
10 years ago
Jonas Schnelli
6e71efa9f0
[REST] remove json input for getutxos, limit to query max. 15 outpoints
...
Remove possibility to send json encoded parameters to `/rest/getutxos/` to avoid possible DoS scenarios.
The JSON output option is untouched.
10 years ago
Jonas Schnelli
64b8027c5c
rest.cpp: strip whitespace
10 years ago
Jonas Schnelli
03c56872b5
appropriate response when trying to get a block in pruned mode
10 years ago
Jonas Schnelli
97ee866549
[REST] getutxos REST command (based on Bip64)
...
has parts of @mhearn #4351
* allows querying the utxos over REST
* same binary input and outputs as mentioned in Bip64
* input format = output format
* various rpc/rest regtests
10 years ago
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
Jonas Schnelli
59582c8b8d
[REST] add /rest/chaininfos
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