aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | rpc: add performance timersmoneromooo-monero2017-10-301-0/+57
| | | | | | | | | | | | | | | | | | | | Enable with perf:DEBUG
* | | | | Merge pull request #2735Riccardo Spagni2017-11-142-1/+4
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | a524b750 rpc: added miner_tx_hash to resp of getblock (stoffu)
| * | | | rpc: added miner_tx_hash to resp of getblockstoffu2017-11-142-1/+4
| | |/ / | |/| |
* | | | Merge pull request #2651Riccardo Spagni2017-11-141-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 118a1bed rpc: make get_coinbase_tx_sum a restricted RPC (moneromooo-monero)
| * | | | rpc: make get_coinbase_tx_sum a restricted RPCmoneromooo-monero2017-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | It's pretty slow and I/O intensive
* | | | | Merge pull request #2615Riccardo Spagni2017-11-142-13/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 10013e94 Protect node privacy by proper filtering in restricted-mode RPC answers (binaryFate)
| * | | | | Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate2017-11-082-13/+13
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* / | | | track double spending in the txpoolmoneromooo-monero2017-11-063-5/+41
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Transactions in the txpool are marked when another transaction is seen double spending one or more of its inputs. This is then exposed wherever appropriate. Note that being marked with this "double spend seen" flag does NOT mean this transaction IS a double spend and will never be mined: it just means that the network has seen at least another transaction spending at least one of the same inputs, so care should be taken to wait for a few confirmations before acting upon that transaction (ie, mostly of use for merchants wanting to accept unconfirmed transactions).
* | | | Merge pull request #2729Riccardo Spagni2017-11-061-22/+31
|\ \ \ \ | |_|_|/ |/| | | | | | | 161401dd Fix JSON-RPC response object over ZMQ (Lee Clagett)
| * | | Fix JSON-RPC response object over ZMQLee Clagett2017-10-261-22/+31
| | |/ | |/|
* / | RPC Add cross origin resource sharing supportTim L2017-10-303-1/+21
|/ /
* | Merge pull request #2587Riccardo Spagni2017-10-151-15/+7
|\ \ | | | | | | | | | cba34494 rpc: out_peers now works again (moneromooo-monero)
| * | rpc: out_peers now works againmoneromooo-monero2017-10-061-15/+7
| | |
* | | lightwallet rpc server commandsJaquee2017-10-151-1/+353
| | |
* | | Subaddresseskenshi842017-10-073-11/+31
| |/ |/|
* | Merge pull request #2548Riccardo Spagni2017-10-061-0/+1
|\ \ | | | | | | | | | 7d4ef258 rpc: fix getting txpool transactions (moneromooo-monero)
| * | rpc: fix getting txpool transactionsmoneromooo-monero2017-09-291-0/+1
| | |
* | | Upgrades to epee::net_utils::network_addressLee Clagett2017-10-051-1/+1
| |/ |/| | | | | | | | | | | | | - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
* | Merge pull request #2513Riccardo Spagni2017-10-021-2/+4
|\ \ | | | | | | | | | 309290d1 Source updates are in a source subdirectory (moneromooo-monero)
| * | Source updates are in a source subdirectorymoneromooo-monero2017-09-221-2/+4
| | | | | | | | | | | | rather than in the same directory as the prebuilt versions
* | | Merge pull request #2512Riccardo Spagni2017-10-022-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | 792ba4f0 Log categories can now be added to and removed from (moneromooo-monero) 48f92eb6 easylogging++: add categories getter (moneromooo-monero) f35afe62 epee: factor log level/categories setting (moneromooo-monero)
| * | | Log categories can now be added to and removed frommoneromooo-monero2017-09-222-0/+4
| |/ / | | | | | | | | | Also, set_log without parameters now prints the log categories
* | | Merge pull request #2470Riccardo Spagni2017-10-023-0/+100
|\ \ \ | |_|/ |/| | | | | 2e59f6ea rpc: add new RPCs to get and set limits (MaxXor)
| * | rpc: add new RPCs to get and set limitsMaxXor2017-09-193-1/+101
| | |
* | | move checkpoints in a separate librarymoneromooo-monero2017-09-251-1/+1
| | |
* | | Merge pull request #2452Riccardo Spagni2017-09-251-16/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | 0aaaca29 tx_pool: set the "invalid input" bit when check_tx_inputs fails (moneromooo-monero) 9236823b simplewallet: print tx rejection reason where it was missing (moneromooo-monero) 3dee3301 core_rpc_server: print tx rejection reason at L0 too (moneromooo-monero)
| * | | core_rpc_server: print tx rejection reason at L0 toomoneromooo-monero2017-09-161-16/+28
| | | |
* | | | Merge pull request #2424Riccardo Spagni2017-09-251-22/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
| * | | | get_blockchain_top now returns voidmoneromooo-monero2017-09-251-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was always returning true, and could not be foreseen to usefully return errors in the future. This silences CID 162652 as well as saves some checking code in a few places.
* | | | | Merge pull request #2442Riccardo Spagni2017-09-251-7/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | e29282d2 build: auto update version info without manually deleting version.h (stoffu)
| * | | | build: auto update version info without manually deleting version.hstoffu2017-09-211-7/+0
| | |_|/ | |/| |
* | | | Merge pull request #2386Riccardo Spagni2017-09-251-7/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | a15e8583 wallet2: guard against daemon sending txes in the wrong order (moneromooo-monero) 8fe5f609 rpc: order transactions in the order they were requested (moneromooo-monero)
| * | | | rpc: order transactions in the order they were requestedmoneromooo-monero2017-09-111-7/+19
| | |_|/ | |/| |
* | | | Merge pull request #2377Riccardo Spagni2017-09-252-2/+5
|\ \ \ \ | | | | | | | | | | | | | | | b5cbdce8 wallet2: correctly handle in/out payments for view-only wallet (stoffu)
| * | | | wallet2: correctly handle in/out payments for view-only walletstoffu2017-09-212-2/+5
| | |/ / | |/| |
* | | | Merge pull request #2357Riccardo Spagni2017-09-251-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | 58015df4 Fix getblocktemplate RPC returning wrong reserved_offset (Guillaume LE VAILLANT)
| * | | Fix getblocktemplate RPC returning wrong reserved_offsetGuillaume LE VAILLANT2017-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | The byte for TX_EXTRA_TAG_PUBKEY is already included in res.reserved_offset by the call to slow_memmem.
* | | | Merge pull request #2044Riccardo Spagni2017-09-1813-2/+3351
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 0299cb77 Fix various oversights/bugs in ZMQ RPC server code (Thomas Winget) 77986023 json serialization for rpc-relevant monero types (Thomas Winget) 5c1e08fe Refactor some things into more composable (smaller) functions (Thomas Winget) 9ac2ad07 DRY refactoring (Thomas Winget)
| * | | Fix various oversights/bugs in ZMQ RPC server codeThomas Winget2017-09-0510-140/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
| * | | json serialization for rpc-relevant monero typesThomas Winget2017-09-0512-1/+3164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Structured {de-,}serialization methods for (many new) types which are used for requests or responses in the RPC. New types include RPC requests and responses, and structs which compose types within those. # Conflicts: # src/cryptonote_core/blockchain.cpp
| * | | DRY refactoringThomas Winget2017-08-311-1/+1
| | |/ | |/|
* / | rpc: get_txpool_backlog is now unrestrictedmoneromooo-monero2017-09-081-1/+1
|/ /
* | Merge pull request #2349Riccardo Spagni2017-08-271-0/+2
|\ \ | | | | | | | | | | | | 1914c999 txpool: update db tx metadata when it changes (moneromooo) 4dbf29bd txpool: add tx size median to the pool stats (moneromooo)
| * | txpool: add tx size median to the pool statsmoneromooo2017-08-251-0/+2
| |/
* | Merge pull request #2347Riccardo Spagni2017-08-271-4/+7
|\ \ | | | | | | | | | | | | 5807529e blockchain: cap memory size of retrieved blocks (moneromooo-monero) c1b10381 rpc: decrease memory usage a bit in getblocks.bin (moneromooo-monero)
| * | rpc: decrease memory usage a bit in getblocks.binmoneromooo-monero2017-08-261-4/+7
| |/
* / rpc: add a new RPC to get current txpool backlog (sizes and fees)moneromooo-monero2017-08-263-0/+49
|/
* change mixin to ring size in user visible placesmoneromooo-monero2017-08-071-1/+1
|
* Merge pull request #2149Riccardo Spagni2017-08-073-0/+93
|\ | | | | | | | | | | | | | | 158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
| * cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-073-1/+94
| | | | | | | | | | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.