aboutsummaryrefslogtreecommitdiff
path: root/src/rpc (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-10-14rpc: make get_coinbase_tx_sum a restricted RPCmoneromooo-monero1-1/+1
It's pretty slow and I/O intensive
2017-10-06Merge pull request #2548Riccardo Spagni1-0/+1
7d4ef258 rpc: fix getting txpool transactions (moneromooo-monero)
2017-10-05Upgrades to epee::net_utils::network_addressLee Clagett1-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
2017-10-02Merge pull request #2513Riccardo Spagni1-2/+4
309290d1 Source updates are in a source subdirectory (moneromooo-monero)
2017-10-02Merge pull request #2512Riccardo Spagni2-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)
2017-10-02Merge pull request #2470Riccardo Spagni3-0/+100
2e59f6ea rpc: add new RPCs to get and set limits (MaxXor)
2017-09-29rpc: fix getting txpool transactionsmoneromooo-monero1-0/+1
2017-09-25move checkpoints in a separate librarymoneromooo-monero1-1/+1
2017-09-25Merge pull request #2452Riccardo Spagni1-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)
2017-09-25Merge pull request #2424Riccardo Spagni1-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)
2017-09-25Merge pull request #2442Riccardo Spagni1-7/+0
e29282d2 build: auto update version info without manually deleting version.h (stoffu)
2017-09-25get_blockchain_top now returns voidmoneromooo-monero1-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.
2017-09-25Merge pull request #2386Riccardo Spagni1-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)
2017-09-25Merge pull request #2377Riccardo Spagni2-2/+5
b5cbdce8 wallet2: correctly handle in/out payments for view-only wallet (stoffu)
2017-09-25Merge pull request #2357Riccardo Spagni1-1/+1
58015df4 Fix getblocktemplate RPC returning wrong reserved_offset (Guillaume LE VAILLANT)
2017-09-22Source updates are in a source subdirectorymoneromooo-monero1-2/+4
rather than in the same directory as the prebuilt versions
2017-09-22Log categories can now be added to and removed frommoneromooo-monero2-0/+4
Also, set_log without parameters now prints the log categories
2017-09-21build: auto update version info without manually deleting version.hstoffu1-7/+0
2017-09-21wallet2: correctly handle in/out payments for view-only walletstoffu2-2/+5
2017-09-19rpc: add new RPCs to get and set limitsMaxXor3-1/+101
2017-09-18Merge pull request #2044Riccardo Spagni13-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)
2017-09-16core_rpc_server: print tx rejection reason at L0 toomoneromooo-monero1-16/+28
2017-09-11rpc: order transactions in the order they were requestedmoneromooo-monero1-7/+19
2017-09-08rpc: get_txpool_backlog is now unrestrictedmoneromooo-monero1-1/+1
2017-09-05Fix various oversights/bugs in ZMQ RPC server codeThomas Winget10-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
2017-09-05json serialization for rpc-relevant monero typesThomas Winget12-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
2017-08-31DRY refactoringThomas Winget1-1/+1
2017-08-27Merge pull request #2349Riccardo Spagni1-0/+2
1914c999 txpool: update db tx metadata when it changes (moneromooo) 4dbf29bd txpool: add tx size median to the pool stats (moneromooo)
2017-08-27Merge pull request #2347Riccardo Spagni1-4/+7
5807529e blockchain: cap memory size of retrieved blocks (moneromooo-monero) c1b10381 rpc: decrease memory usage a bit in getblocks.bin (moneromooo-monero)
2017-08-26rpc: decrease memory usage a bit in getblocks.binmoneromooo-monero1-4/+7
2017-08-26Fix getblocktemplate RPC returning wrong reserved_offsetGuillaume LE VAILLANT1-1/+1
The byte for TX_EXTRA_TAG_PUBKEY is already included in res.reserved_offset by the call to slow_memmem.
2017-08-26rpc: add a new RPC to get current txpool backlog (sizes and fees)moneromooo-monero3-0/+49
2017-08-25txpool: add tx size median to the pool statsmoneromooo1-0/+2
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero1-1/+1
2017-08-07Merge pull request #2149Riccardo Spagni3-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)
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero3-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.
2017-07-04Add on_get_alt_blocks_hashes RPC callmoneroexamples3-1/+44
2017-06-28Remove typeid use in network_addressmoneromooo-monero1-2/+2
Since I had to add an ID to the derived classes anyway, this can be used instead. This removes an apparently pointless warning from CLANG too.
2017-06-24Merge pull request #2091Riccardo Spagni1-2/+2
e4da88a2 Fixed typo in rpc/core_rpc_server.cpp (Julien Klepatch)
2017-06-18Merge pull request #2066Riccardo Spagni1-1/+16
3fc22e7b Add histogram to poolstats (Howard Chu) d09620b0 Fix PR#2039 (Howard Chu)
2017-06-18Merge pull request #2052Riccardo Spagni2-8/+43
072102cf abstracted nework addresses (moneromooo-monero)
2017-06-18Fixed typo in rpc/core_rpc_server.cppJulien Klepatch1-2/+2
2017-06-04Add histogram to poolstatsHoward Chu1-1/+16
2017-06-01Speedup print_pool_statsHoward Chu3-1/+56
Since we're just counting txs, there's no reason to deserialize all the blobs.
2017-05-30Merge pull request #1982Riccardo Spagni1-3/+3
b52abd13 Move txpool to the database (moneromooo-monero)
2017-05-27abstracted nework addressesmoneromooo-monero2-9/+44
All code which was using ip and port now uses a new IPv4 object, subclass of a new network_address class. This will allow easy addition of I2P addresses later (and also IPv6, etc). Both old style and new style peer lists are now sent in the P2P protocol, which is inefficient but allows peers using both codebases to talk to each other. This will be removed in the future. No other subclasses than IPv4 exist yet.
2017-05-25Move txpool to the databasemoneromooo-monero1-3/+3
Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
2017-04-19Add expected total reward to RPC "getblocktemplate".assylias2-2/+4
Only works from V5 fork onward - returns 0 before that block.
2017-04-02daemon: new relay_tx command and RPCmoneromooo-monero3-1/+70
2017-03-23core, wallet: faster tx pool scanningmoneromooo-monero3-1/+31
Includes a new RPC to get tx pool hashes fast.
2017-03-05rpc: fix BUILD_TAG mispelling (BUILDTAG)moneromooo-monero1-2/+2
This ensures a manual or RPC update tries the right build tag, rather than source, which is currently not setup
2017-03-03Merge pull request #1820Riccardo Spagni2-2/+34
7a44f38a Add support for the wallet to refresh pruned blocks (moneromooo-monero) da18898f ringct: do not require range proof in decodeRct/decodeRctSimple (moneromooo-monero) b49c6ab4 rpc: add a default category for daemon rpc (moneromooo-monero) f113b92b core: add functions to serialize base tx info (moneromooo-monero) 6fd4b827 node_rpc_proxy: allow caching daemon RPC version (moneromooo-monero) b5c74e40 wallet: invalidate node proxy cache when reconnecting (moneromooo-monero)
2017-02-27Add support for the wallet to refresh pruned blocksmoneromooo-monero2-2/+31
2017-02-27rpc: add a default category for daemon rpcmoneromooo-monero1-0/+3
2017-02-24daemon/rpc: updates command and RPCmoneromooo-monero3-0/+132
subcommands "check", "download", and "update". update is not yet implemented.
2017-02-24Merge pull request #1781Riccardo Spagni1-1/+1
520756c3 rpc: s/rcp/rpc/ (moneromooo-monero)
2017-02-23rpc: s/rcp/rpc/moneromooo-monero1-1/+1
2017-02-23rpc: make mining_status RPC work when syncingmoneromooo-monero1-1/+1
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni5-5/+5
2017-02-21Merge pull request #1727Riccardo Spagni1-7/+13
0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
2017-02-21Merge pull request #1737Riccardo Spagni2-1/+3
69ab14d9 More robust battery status handling. (Dion Ahmetaj)
2017-02-16More robust battery status handling.Dion Ahmetaj2-1/+3
Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.
2017-02-13rpc: fix some RPC calls not returning OK status when neededmoneromooo-monero1-0/+3
2017-02-13blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero1-7/+13
This speeds up operations such as serving blocks to syncing peers
2017-02-12Merge pull request #1712Riccardo Spagni1-1/+1
3b6839cc mlog: move log level changes to global level (moneromooo-monero) 38a1b9c9 rpc: fix daemon mixed style set_log 2,category:level (moneromooo-monero) 28d0b11f mlog: s/Mew/New/ in log (moneromooo-monero)
2017-02-12rpc: fix daemon mixed style set_log 2,category:levelmoneromooo-monero1-1/+1
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2-0/+3
was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2-1/+3
source, and CPU has been idle for some time, then begin mining to some threshold (don't destroy the users' CPU). This patch only supports windows and linux (I've only tested on Win64 and Ubuntu). The variables currently default to pretty conservative values (i.e. 20% CPU mining threshold).
2017-02-11Merge pull request #1689Riccardo Spagni5-41/+186
ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi843-5/+6
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett5-41/+186
2017-02-02Merge pull request #1636Riccardo Spagni1-0/+17
cc1462e0 Add concurrency check to rpc mining to ensure not too many threads. number of cores times 4 or 257. (Ashley Perpetual)
2017-02-02Merge pull request #1634Riccardo Spagni1-1/+1
99f58437 Fix invalid + of std::string and int (Timothy D. Prime)
2017-01-28Add concurrency check to rpc mining to ensure not too many threads. number ↵Ashley Perpetual1-0/+17
of cores times 4 or 257.
2017-01-26Fix invalid + of std::string and intTimothy D. Prime1-1/+1
These warnings were emitted by clang++, and they are real bugs. src/rpc/core_rpc_server.cpp:208:58: warning: adding 'uint64_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int] res.status = "Error retrieving block at height " + height; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ The obvious intent is achieved by using std::to_string().
2017-01-22Remove boost/foreach.cpp includesMiguel Herranz1-1/+0
2017-01-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz1-7/+7
2017-01-22Merge pull request #1610Riccardo Spagni1-4/+6
b70ab128 rpc: fix orphan_status when getting blocks (moneromooo-monero)
2017-01-22rpc: fix orphan_status when getting blocksmoneromooo-monero1-4/+6
It was always set to false, even for orphan blocks
2017-01-22p2p: always recreate a new peer id on startupmoneromooo-monero1-0/+2
This prevents easy fingerprinting when you change IPs, and will be a must when kovri gets used.
2017-01-15Merge pull request #1569Riccardo Spagni3-1/+55
16b8b66a specify restore height by YYYY-MM-DD format (kenshi84)
2017-01-16specify restore height by YYYY-MM-DD formatkenshi843-1/+55
2017-01-16Change logging to easylogging++moneromooo-monero3-8/+33
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-16macro to define core RPC version for avoiding future mistakekenshi841-1/+2
2017-01-15Merge pull request #1571Riccardo Spagni2-2/+4
81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero2-3/+5
Also print its value when printing pool
2017-01-13rpc: add a command to get info about the current blockchainmoneromooo-monero2-1/+4
About the tip of the main chain, and the last N blocks
2017-01-13Merge pull request #1543Riccardo Spagni2-0/+4
19be7225 Add start_time to get_info methods and show uptime (Miguel Herranz)
2017-01-12Add start_time to get_info methods and show uptimeMiguel Herranz2-1/+5
2017-01-09wallet cli: print originating block heights of mixin keys when making transferkenshi842-1/+11
2017-01-08Merge pull request #1534Riccardo Spagni2-1/+8
1607cb7e tx_pool: better block template filling algorithm (moneromooo-monero) 9731b4e5 rpc: add block size to GET_BLOCK_HEADER RPC (moneromooo-monero) 9188b346 rpc: add current block size to the getinfo call (moneromooo-monero)
2017-01-06rpc: add block size to GET_BLOCK_HEADER RPCmoneromooo-monero2-1/+4
and print it in print_bc
2017-01-06rpc: add current block size to the getinfo callmoneromooo-monero2-1/+5
2016-12-24rpc: fix mixup in tx_info serializationmoneromooo-monero1-1/+1
2016-12-17rpc: new function and RPC to get alternative chain infomoneromooo-monero3-0/+55
2016-12-13Adding HTTP Digest Auth (but not yet enabled)Lee Clagett1-0/+1
2016-11-26Improve daemon RPC version handlingmoneromooo-monero1-1/+10
Daemon RPC version is now composed of a major and minor number, so that incompatible changes bump the major version, while compatible changes can still bump the minor version without causing clients to unnecessarily complain.
2016-11-23rpc: do not include output indices for pool txesmoneromooo-monero1-5/+8
Those aren't yet in the blockchain, so will not be found (and aren't yet known, since it depends on where exactly the tx will be mined in the next block or blocks)
2016-11-22rpc: bump version after RPC changesmoneromooo-monero1-1/+1
2016-11-22Add a get_outs (fully text based) version of get_outs.binmoneromooo-monero3-13/+87
2016-11-22rpc: add output indices to gettransactionsmoneromooo-monero2-0/+10
Someone apparently needs that to make a wallet but never asked. If you read that and that's not what you wanted, the bugtracker is at https://github.com/monero-project/monero/issues
2016-11-10rpc: bump RPC versionmoneromooo-monero1-1/+1
I forgot to bump it previously when changing RPC, most notably for the addition of the unlocked field in the histogram RPC. This causes new wallets to not realize when they're talking to an older daemon, and get confused trying to get outputs to use as fake outs. This otherwise gratuitous bump ensures than old daemons will be detected by wallets using this code.
2016-10-31rpc: add a dynamic fee estimation RPC callmoneromooo-monero3-0/+32
2016-10-23Merge pull request #1247Riccardo Spagni1-0/+4
10a79ea daemon: report transaction relay status in print_pool* commands (moneromooo-monero) 1e16366 core: notify the txpool when transactions are relayed (moneromooo-monero) f3c374f tx_pool: set relayed flag on relay (moneromooo-monero)
2016-10-23daemon: report transaction relay status in print_pool* commandsmoneromooo-monero1-0/+4
2016-10-22Merge pull request #1222Riccardo Spagni2-0/+4
5e10fb0 rpc: add blockchain cumulative difficulty to getinfo call (moneromooo-monero)
2016-10-22Merge pull request #1221Riccardo Spagni1-1/+8
094f4c8 rpc: add missing top block hash to json getinfo call (moneromooo-monero)
2016-10-15wallet: select part of the fake outs from recent outputsmoneromooo-monero2-7/+14
25% of the outputs are selected from the last 5 days (if possible), in order to avoid the common case of sending recently received outputs again. 25% and 5 days are subject to review later, since it's just a wallet level change.
2016-10-15rpc: add blockchain cumulative difficulty to getinfo callmoneromooo-monero2-0/+4
2016-10-15rpc: add missing top block hash to json getinfo callmoneromooo-monero1-1/+8
2016-10-10print_coinbase_tx_sum now breaks output into fee and emission componentsDion Ahmetaj2-3/+7
2016-10-10changed params from start/end index to height/countDion Ahmetaj3-7/+7
2016-10-10attempted to remove whitespace spamDion Ahmetaj3-57/+57
2016-10-10added print_coinbase_tx_sum optionDion Ahmetaj3-58/+90
2016-10-04Fix build after spelling corrections in core_rpc_serverJacob Brydolf1-2/+2
2016-10-04Merge pull request #1164Riccardo Spagni2-0/+53
179b1f4 daemon: implement missing print_bc and matching RPC (moneromooo-monero)
2016-10-04Merge pull request #1139Riccardo Spagni1-2/+2
01ec195 Update CMakeLists.txt (codehalo) 446ebbc Update CMakeLists.txt (codehalo) bd773e7 Update CMakeLists.txt (codehalo) 3627cea Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 2a51396 Dropped "bit" from bitmonero. (Randi Joseph) 78b13d6 Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 1e6aedb Cleanup. Dropped "bit" from bitmonero. (Randi Joseph) 9e54616 Dropped "bit" from bitmonero. (Randi Joseph)
2016-10-04Merge pull request #1171Riccardo Spagni2-10/+0
6390673 Removed all code related to fast_exit (NanoAkron)
2016-10-03Removed all code related to fast_exitNanoAkron2-10/+0
2016-10-02daemon: implement missing print_bc and matching RPCmoneromooo-monero2-0/+53
2016-09-29Noticed two spellings of the word 'response' in the codebase, one 'responce' ↵NanoAkron3-27/+27
and the other 'response'. Fixed to the standard spelling 'response'. This may fix some functionality - some calls had mixed spellings.
2016-09-26Dropped "bit" from bitmonero.Randi Joseph1-2/+2
2016-09-18epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2-1/+10
This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-4/+2
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
2016-08-28wallet: transfer_selected_rct now also selects fake outsmoneromooo-monero1-1/+3
2016-08-28rpc: send global indices along with blocks/transacions on refreshmoneromooo-monero2-0/+36
This plugs a privacy leak, where the wallet tells the daemon which transactions contain outputs for the wallet by asking for additional information for that particular transaction. As a nice bonus, this actually makes refresh slightly faster.
2016-08-28mixable transactions must be rct for v3moneromooo-monero2-0/+4
2016-08-28add rct to the protocolmoneromooo-monero1-0/+1
It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
2016-08-28core: new /getrandom_rctouts.bin binary RPC callmoneromooo-monero3-0/+56
to get random ringct outputs to mix with
2016-08-28remove original Cryptonote blockchain_storage blockchain formatmoneromooo-monero1-6/+0
2016-08-12daemon: print time to next forkmoneromooo-monero1-1/+1
2016-08-11Fake outs set is now decided by the walletmoneromooo-monero3-1/+72
This plugs a privacy leak from the wallet to the daemon, as the daemon could previously see what input is included as a transaction input, which the daemon hadn't previously supplied. Now, the wallet requests a particular set of outputs, including the real one. This can result in transactions that can't be accepted if the wallet happens to select too many outputs with non standard unlock times. The daemon could know this and select another output, but the wallet is blind to it. It's currently very unlikely since I don't think anything uses non default unlock times. The wallet requests more outputs than necessary so it can use spares if any of the returns outputs are still locked. If there are not enough spares to reach the desired mixin, the transaction will fail.
2016-08-01new unlocked parameter to output_histogrammoneromooo-monero2-1/+3
This constrains the number of instances of any amount to the unlocked ones (as defined by the default unlock time setting: outputs with non default unlock time are not considered, so may be counted as unlocked even if they are not actually unlocked).
2016-07-26core_rpc_server: fix gray/white peer list mixupmoneromooo-monero1-1/+1
2016-07-20Merge pull request #902Riccardo Spagni3-0/+31
014f3a0 Add a daemon RPC version, and make simplewallet check it (moneromooo-monero)
2016-07-10Add a daemon RPC version, and make simplewallet check itmoneromooo-monero3-0/+31
If the version is different, simplewallet will refuse to use that daemon, unless --allow-mismatched-daemon-version is used.
2016-07-10rpc: fix get_bans and set_bans RPC names, they were missing a _moneromooo-monero1-2/+2
2016-06-29rpc: restrict number of fake outs requested in restricted rpc modemoneromooo-monero1-0/+12
2016-06-10rpc: fix getblock RPC sending blob as binary, not hex dumpmoneromooo-monero1-1/+1
2016-05-16Restrict also 'get_connections' and 'getbans' APIs.osensei1-2/+2
2016-05-14Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in ↵osensei1-2/+2
restricted mode.
2016-04-17Add GET_HASHES_FAST rpc, use it in walletHoward Chu3-0/+51
When m_refresh_from_block_height has been set, only hashes will be retrieved up to that height, instead of full blocks. The same will be done for "refresh <height>" when the specified height is beyond the current local blockchain.
2016-04-14Merge pull request #797Riccardo Spagni2-1/+3
d662ab5 rpc: print human readable time since received when printing pool (moneromooo-monero) 5c9dd23 rpc: add a do_not_relay boolean to tx submission (moneromooo-monero)
2016-04-09rpc: add pool/blockchain and block height results to gettransactionsmoneromooo-monero2-7/+54
2016-04-05rpc: add a do_not_relay boolean to tx submissionmoneromooo-monero2-1/+3
Just to make it easier
2016-04-02Merge pull request #777Riccardo Spagni2-0/+4
8757e46 add blockhashing blob to getblocktemplate (Howard Chu)
2016-04-02Merge pull request #767Riccardo Spagni2-10/+44
24b3e90 Convey tx verification failure reasons to the RPC client (moneromooo-monero)
2016-03-30add blockhashing blob to getblocktemplateHoward Chu2-0/+4
2016-03-27Convey tx verification failure reasons to the RPC clientmoneromooo-monero2-13/+47
This allows appropriate action to be taken, like displaying the reason to the user. Do just that in simplewallet, which should help a lot in determining why users fail to send. Also make it so a tx which is accepted but not relayed is seen as a success rather than a failure.
2016-03-26New RPC and daemon command to get output histogrammoneromooo-monero3-0/+75
This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs.
2016-03-14Fix typo on bitmonerod rpc method error.Mike C1-3/+3
2016-03-12rpc: do not return bans if they're effectively spentmoneromooo-monero1-4/+7
The blocked ip list will still hold them till next time a connection attempt is made with that IP, so the effective length of the ban may be negative.
2016-01-30new flush_txpool command, and associated RPC callmoneromooo-monero3-0/+77
It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
2016-01-30rpc: add missing return on error when getting a txmoneromooo-monero1-0/+1
2016-01-29Fix V1/V2 use of hard fork related parametersmoneromooo-monero1-2/+2
Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
2016-01-11rpc: fix missing target information in RPC callmoneromooo-monero2-0/+3
which fixes the status command via RPC too. Turns out there are two versions of the GET_INFO call. I'd never noticed before.
2016-01-05rpc: is_key_image_spent now checks the tx pool toomoneromooo-monero2-1/+37
2015-12-31updated copyright yearRiccardo Spagni5-5/+5
2015-12-22Merge pull request #547Riccardo Spagni2-1/+3
8ea7af1 Allow the wallet to access hard fork information (moneromooo-monero) 760331b epee: make log macros behave like statements (moneromooo-monero) 3f2970f Add missing semicolons after log statements (moneromooo-monero)
2015-12-19Allow the wallet to access hard fork informationmoneromooo-monero2-1/+3
And make it change behavior slightly when close/after first hard fork
2015-12-18print top block hash in daemon diff commandmoneromooo-monero2-1/+10
and add top block hash in get_info RPC
2015-12-08Register daemon command line arguments to core if they're used in coremoneromooo-monero1-2/+1
This fixes coretests, which does not register daemon specific arguments, but uses core, which uses those arguments. Also gets rid of an unwanted dependency on daemon code from core.
2015-11-30Merge pull request #505Riccardo Spagni2-12/+22
7574297 core_rpc_server: add a --restricted-rpc option (moneromooo-monero)
2015-11-30Merge pull request #503Riccardo Spagni2-0/+2
55e5a33 rpc: pass current block target in rpc (moneromooo-monero)
2015-11-27core_rpc_server: add a --restricted-rpc optionmoneromooo-monero2-12/+22
It does not expose the RPC for commands like start_mining, etc (ie, commands a public node operator might want to be restricted)
2015-11-26rpc: pass current block target in rpcmoneromooo-monero2-0/+2
This fixes the hash rate being wrong on testnet after the switch to 2 minute blocks
2015-11-26add RPC calls and commands to get/set bansmoneromooo-monero3-0/+112
2015-11-21Relay transactions when they linger too long in the poolmoneromooo-monero1-1/+1
The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node.
2015-10-28rpc: fix start_mining and status RPC crashesmoneromooo-monero2-0/+3
They check whether they're running on testnet by accessing the m_rpc_server object, which does not exist when in RPC mode. Also, fix hard_fork_info being called with the wrong API.
2015-10-26rpc: fix hard_fork_info RPCmoneromooo-monero2-0/+2
I had never tested it, obviously
2015-10-13core_rpc_server: add optional json decoded tx to COMMAND_RPC_GET_TRANSACTIONSmoneromooo-monero2-0/+6
2015-10-13core_rpc_server: add a getblock RPC command, and fix print_blockmoneromooo-monero3-0/+94
2015-09-19Add an RPC call and daemon command to get info on hard fork votingmoneromooo-monero4-0/+60
2015-08-13Merge pull request #369Riccardo Spagni2-2/+6
d87a2d2 core_rpc_server: replace vector<bool> with vector<int> in RPC (moneromooo-monero)
2015-08-13core_rpc_server: replace vector<bool> with vector<int> in RPCmoneromooo-monero2-2/+6
vector<bool> causes issues in serialization with Boost 1.56
2015-08-11core_rpc_server: find transactions in the pool as well as the blockchainmoneromooo-monero1-0/+24
2015-08-11Add a is_key_image_spent daemon command and RPC callmoneromooo-monero3-0/+56
2015-05-28core_rpc_server: add a getter for the testnet flagmoneromooo-monero1-0/+1
2015-05-28core_rpc_server: log some error messages to the consolemoneromooo-monero1-0/+3
It's helpful when you don't know something failed (especially as everything ends up returning true, so caller thinks all's fine)
2015-05-28core_rpc_server: reenable print_plmoneromooo-monero1-3/+2
2015-04-23Add mempool output to daemon via command and RPCwarptangent2-4/+15
This is for the "print_pool" command and "get_transaction_pool" RPC method. Add mempool's spent key images to the results.
2015-04-10[fix] log level change. compilation: dns, testsrfree2monero1-0/+2
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero4-0/+122
2015-03-27Restore daemon interactive modeThomas Winget2-52/+53
Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
2015-02-24revert stop_daemon method to use correct exitThomas Winget1-1/+1
This was changed because sometimes the daemon does not complete its exit routine with this method, but as it does correctly wind most things down even if it gets stuck I've changed it back.
2015-02-24RPC calls for background daemon added inThomas Winget3-1/+254
The RPC calls the daemon executable uses to talk to the running daemon instance have mostly been added back in. Rate limiting has not been added in upstream, but is on its way in a separate effort, so those calls are still NOPed out.
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget2-24/+32
many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
2015-01-06previous hash added to GBTRiccardo Spagni2-0/+3
2015-01-02year updated in licenseRiccardo Spagni5-5/+5
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+7
2014-10-23cmake: refactor common code with librariesBen Boeckel1-9/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+57
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
2014-10-06core_rpc_server: use do while(0) idiom in macros using ifmoneromooo-monero1-2/+2
2014-10-06core_rpc_server: fix overreads in slow_memmemmoneromooo-monero1-8/+10
It would read data outside the allocated space in a couple cases.
2014-09-15Give up on brace initializers in initializer lists (MSVC bug)Zachary Michaels1-1/+1
2014-09-15Separate testnet address prefixZachary Michaels2-11/+19
2014-09-15Add descriptions for RPC command line paramsZachary Michaels1-3/+9
2014-09-15Separate rpc port for testnetZachary Michaels2-7/+31
2014-09-15Reorganize testnet constantsZachary Michaels1-1/+1