wownero/tests/unit_tests
binaryFate 10013e9434 Protect node privacy by proper filtering in restricted-mode RPC answers
This patch allows to filter out sensitive information for queries that rely on the pool state, when running in restricted mode.
This filtering is only applied to data sent back to RPC queries. Results of inline commands typed locally in the daemon are not affected.
In practice, when running with `--restricted-rpc`:
* get_transaction_pool will list relayed transactions with the fields "last relayed time" and "received time" set to zero.
* get_transaction_pool will not list transaction that have do_not_relay set to true, and will not list key images that are used only for such transactions
* get_transaction_pool_hashes.bin will not list such transaction
* get_transaction_pool_stats will not count such transactions in any of the aggregated values that are computed

The implementation does not make filtering the default, so developers should be mindful of this if they add new RPC functionality.
Fixes #2590.
2017-11-08 13:07:07 +01:00
..
address_from_url.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
apply_permutation.cpp blockchain: reject unsorted ins and outs from v7 2017-09-18 11:23:15 +01:00
ban.cpp Merge pull request #2469 2017-10-15 17:23:50 +02:00
base58.cpp Subaddresses 2017-10-07 13:06:21 +09:00
block_queue.cpp protocol: fix reorgs while syncing 2017-08-12 11:22:42 +01:00
block_reward.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
blockchain_db.cpp Replace deprecated tmpnam function. 2017-03-29 22:32:00 -04:00
canonical_amounts.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
chacha8.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
checkpoints.cpp move checkpoints in a separate library 2017-09-25 21:16:26 +01:00
CMakeLists.txt Merge pull request #2608 2017-10-15 18:54:16 +02:00
command_line.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
crypto.cpp Added test documentation & Keccak unit test 2017-09-19 15:08:38 -06:00
decompose_amount_into_digits.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
dns_resolver.cpp dns_utils: allow an optional DNS server IP in DNS_PUBLIC 2017-10-10 12:29:05 +01:00
epee_boosted_tcp_server.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
epee_levin_protocol_handler_async.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
epee_utils.cpp unit_tests: fix compiling on Windows 2017-10-08 23:59:08 +02:00
fee.cpp Add intervening v5 fork for increased min block size 2017-03-15 08:32:51 +00:00
get_xtype_from_string.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
hardfork.cpp Protect node privacy by proper filtering in restricted-mode RPC answers 2017-11-08 13:07:07 +01:00
hashchain.cpp tests: fix hashchain unit tests 2017-10-03 00:51:53 +01:00
http.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
main.cpp unit_tests: data dir is now overridden with --data-dir 2017-10-08 21:19:05 +01:00
mnemonics.cpp mnemonics: new Lojban word list 2017-09-26 06:42:17 +08:00
mul_div.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
output_selection.cpp move checkpoints in a separate library 2017-09-25 21:16:26 +01:00
parse_amount.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
ringct.cpp Improvements for epee binary to hex functions: 2017-04-11 16:35:00 -04:00
serialization.cpp Merge pull request #2610 2017-10-15 18:54:32 +02:00
sha256.cpp unit_tests: fix build on windows 2017-10-16 09:37:51 +01:00
slow_memmem.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
test_peerlist.cpp Upgrades to epee::net_utils::network_address 2017-10-05 11:57:09 -04:00
test_protocol_pack.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
test_tx_utils.cpp move checkpoints in a separate library 2017-09-25 21:16:26 +01:00
unbound.cpp tests: unbound API is only accessible in static builds 2016-04-02 16:02:18 +01:00
unit_tests_utils.h tests: pass data dir as arg 2017-09-28 01:41:44 -04:00
uri.cpp tests: add unit tests for uri parsing 2016-11-28 17:54:28 +00:00
varint.cpp update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
vercmp.cpp util: add a vercmp function to compare version numbers 2017-02-20 22:58:04 +00:00