aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add on_get_alt_blocks_hashes RPC callmoneroexamples2017-07-043-1/+44
|/
* Remove typeid use in network_addressmoneromooo-monero2017-06-281-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.
* Merge pull request #2091Riccardo Spagni2017-06-241-2/+2
|\ | | | | | | e4da88a2 Fixed typo in rpc/core_rpc_server.cpp (Julien Klepatch)
| * Fixed typo in rpc/core_rpc_server.cppJulien Klepatch2017-06-181-2/+2
| |
* | Merge pull request #2066Riccardo Spagni2017-06-181-1/+16
|\ \ | | | | | | | | | | | | 3fc22e7b Add histogram to poolstats (Howard Chu) d09620b0 Fix PR#2039 (Howard Chu)
| * | Add histogram to poolstatsHoward Chu2017-06-041-1/+16
| |/
* | Merge pull request #2052Riccardo Spagni2017-06-182-8/+43
|\ \ | |/ |/| | | 072102cf abstracted nework addresses (moneromooo-monero)
| * abstracted nework addressesmoneromooo-monero2017-05-272-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.
* | Speedup print_pool_statsHoward Chu2017-06-013-1/+56
| | | | | | | | Since we're just counting txs, there's no reason to deserialize all the blobs.
* | Merge pull request #1982Riccardo Spagni2017-05-301-3/+3
|\ \ | |/ |/| | | b52abd13 Move txpool to the database (moneromooo-monero)
| * Move txpool to the databasemoneromooo-monero2017-05-251-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.
* | Add expected total reward to RPC "getblocktemplate".assylias2017-04-192-2/+4
|/ | | | Only works from V5 fork onward - returns 0 before that block.
* daemon: new relay_tx command and RPCmoneromooo-monero2017-04-023-1/+70
|
* core, wallet: faster tx pool scanningmoneromooo-monero2017-03-233-1/+31
| | | | Includes a new RPC to get tx pool hashes fast.
* rpc: fix BUILD_TAG mispelling (BUILDTAG)moneromooo-monero2017-03-051-2/+2
| | | | | This ensures a manual or RPC update tries the right build tag, rather than source, which is currently not setup
* Merge pull request #1820Riccardo Spagni2017-03-032-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)
| * Add support for the wallet to refresh pruned blocksmoneromooo-monero2017-02-272-2/+31
| |
| * rpc: add a default category for daemon rpcmoneromooo-monero2017-02-271-0/+3
| |
* | daemon/rpc: updates command and RPCmoneromooo-monero2017-02-243-0/+132
|/ | | | | subcommands "check", "download", and "update". update is not yet implemented.
* Merge pull request #1781Riccardo Spagni2017-02-241-1/+1
|\ | | | | | | 520756c3 rpc: s/rcp/rpc/ (moneromooo-monero)
| * rpc: s/rcp/rpc/moneromooo-monero2017-02-231-1/+1
| |
* | rpc: make mining_status RPC work when syncingmoneromooo-monero2017-02-231-1/+1
|/
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-215-5/+5
|
* Merge pull request #1727Riccardo Spagni2017-02-211-7/+13
|\ | | | | | | 0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
| * blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero2017-02-131-7/+13
| | | | | | | | This speeds up operations such as serving blocks to syncing peers
* | Merge pull request #1737Riccardo Spagni2017-02-212-1/+3
|\ \ | | | | | | | | | 69ab14d9 More robust battery status handling. (Dion Ahmetaj)
| * | More robust battery status handling.Dion Ahmetaj2017-02-162-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.
* / rpc: fix some RPC calls not returning OK status when neededmoneromooo-monero2017-02-131-0/+3
|/
* Merge pull request #1712Riccardo Spagni2017-02-121-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)
| * rpc: fix daemon mixed style set_log 2,category:levelmoneromooo-monero2017-02-121-1/+1
| |
* | Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2017-02-102-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.
* | Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2017-02-102-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).
* Merge pull request #1689Riccardo Spagni2017-02-115-41/+186
|\ | | | | | | ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
| * Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-065-41/+186
| |
* | extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-083-5/+6
|/
* Merge pull request #1636Riccardo Spagni2017-02-021-0/+17
|\ | | | | | | cc1462e0 Add concurrency check to rpc mining to ensure not too many threads. number of cores times 4 or 257. (Ashley Perpetual)
| * Add concurrency check to rpc mining to ensure not too many threads. number ↵Ashley Perpetual2017-01-281-0/+17
| | | | | | | | of cores times 4 or 257.
* | Merge pull request #1634Riccardo Spagni2017-02-021-1/+1
|\ \ | | | | | | | | | 99f58437 Fix invalid + of std::string and int (Timothy D. Prime)
| * | Fix invalid + of std::string and intTimothy D. Prime2017-01-261-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().
* | Remove boost/foreach.cpp includesMiguel Herranz2017-01-221-1/+0
| |
* | Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz2017-01-221-7/+7
|/
* Merge pull request #1610Riccardo Spagni2017-01-221-4/+6
|\ | | | | | | b70ab128 rpc: fix orphan_status when getting blocks (moneromooo-monero)
| * rpc: fix orphan_status when getting blocksmoneromooo-monero2017-01-221-4/+6
| | | | | | | | It was always set to false, even for orphan blocks
* | p2p: always recreate a new peer id on startupmoneromooo-monero2017-01-221-0/+2
|/ | | | | This prevents easy fingerprinting when you change IPs, and will be a must when kovri gets used.
* Merge pull request #1569Riccardo Spagni2017-01-153-1/+55
|\ | | | | | | 16b8b66a specify restore height by YYYY-MM-DD format (kenshi84)
| * specify restore height by YYYY-MM-DD formatkenshi842017-01-163-1/+55
| |
* | Change logging to easylogging++moneromooo-monero2017-01-163-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.
* macro to define core RPC version for avoiding future mistakekenshi842017-01-161-1/+2
|
* Merge pull request #1571Riccardo Spagni2017-01-152-2/+4
|\ | | | | | | 81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
| * fix do_not_relay not preventing relaying on a timermoneromooo-monero2017-01-142-3/+5
| | | | | | | | Also print its value when printing pool