Antioch Peverell
ec3ea9c3ff
pass ref to chain around ( #3401 )
2020-07-27 11:05:12 +01:00
Quentin Le Sceller
be4779c923
Less cloning and pattern simplifications ( #3305 )
...
* Cleanup
* Pattern simplification
2020-04-24 11:19:34 +02:00
Antioch Peverell
8ca381a9c2
cleanup util::from_hex() ( #3265 )
...
* cleanup our from_hex()
* fix keychain tests
* add test coverage for empty hex string
2020-03-10 10:36:18 +00:00
jaspervdm
d5b523248b
API: don't error on missing output ( #3256 )
...
* Node API: don't error on missing output
* Propagate errors from get_output*
* Rename is_unspent and small refactor
* Forgot to rename function in tests
* Change Batch get_output_pos_height type signature
2020-03-04 23:42:10 +01:00
Quentin Le Sceller
04a0123752
Less cloning and additional pattern simplifications ( #3223 )
...
* API Cleanup
* Chain Cleanup
* Core Cleanup
* Keychain Cleanup
* P2P Cleanup
* Pool Cleanup
* Store Cleanup
* Util Cleanup
* Cleanup clone_from_slice
* Address jasper comments
2020-02-12 19:35:33 +01:00
François Garillot
dcdbdd4bcc
Some simple Option / Result / iterator pattern simplifications ( #3205 )
2020-01-29 14:20:57 +00:00
Quentin Le Sceller
6e5afe496b
Update License to 2020 ( #3196 )
2020-01-20 11:40:58 +00:00
Quentin Le Sceller
cdb2d6c72c
Node API v2 ( #3094 )
...
* Node API v2
* Update gitignore
* Add get_pmmr_indices method
* Add Foreign and Owner API each one with specific secret
* Fix failing tests
* Revert to 'Option<u64>'
2019-12-06 10:57:53 +00:00
Quentin Le Sceller
6be6391225
Change 2018 to 2019 in copyright files ( #3072 )
2019-10-02 09:40:20 +01:00
jaspervdm
30156cdcf9
Kernel lookup api method ( #3000 )
...
* Kernel lookup api
* Min and max height parameters, scan backwards
* Return null instead of 404 if kernel not found
* Return TxKernel instead of TxKernelPrintable
* Update description of KernelHandler
2019-08-30 10:03:12 +01:00
Aleksandrov Vladimir
2cb37913ba
add flag 'no_merkle_proof' to /v1/blocks
api to get blocks without checking merkle proof ( #2843 )
2019-05-31 08:49:40 +02:00
Mark Renten
c3cd98cae7
Add some better logging for get_outputs_by_id failure states ( #2705 )
2019-03-25 15:17:47 +01:00
hashmap
7fad5b040f
Reduce number of unwwaps in api crate ( #2681 )
...
* Reduce number of unwwaps in api crate
* Format use section
2019-03-18 19:34:35 +01:00
hashmap
ac6ed71abd
Refactor API handlers ( #2572 )
...
Also add some API tests
2019-02-15 22:17:00 +01:00
Mark Renten
3b74a9ba3f
Add content disposition for OK responses ( #2545 )
2019-02-11 10:54:21 -08:00
Simon B
8935f3c7b4
clippy says: use char (',') instead of string (",")
...
https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
2019-01-24 01:53:35 +01:00
hashmap
aedac483f5
Convert to Rust 2018 edition ( #2084 )
...
* Convert to Rust 2018 edition
* Update gitignore
2018-12-08 00:59:40 +01:00
Jeff Barg
cc63fe4d32
refactor: refactored the API into related handler files ( #1914 )
2018-11-03 07:46:12 +01:00