summaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
* updates: remove testnet casemoneromooo-monero2017-02-221-1/+1
| | | | It need not be any different
* updates: we now have a user URL, and an automatic onemoneromooo-monero2017-02-221-1/+2
| | | | So the user can use https, while the automatic does not have to
* updates: s/monerod/monero/ for the main downloadmoneromooo-monero2017-02-221-2/+2
| | | | Also print download success message as global log
* Merge pull request #1766Riccardo Spagni2017-02-2210-10/+10
|\ | | | | | | | | | | | | 72deb484 updated fallback nodes (Riccardo Spagni) 33329f5b update version to 0.10.2 (Riccardo Spagni) 04a50a7e update checkpoints.dat (Riccardo Spagni) c3599fa7 update copyright year, fix occasional lack of newline at line end (Riccardo Spagni)
| * update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-2110-10/+10
| |
* | core: do not download an update we already downloadedmoneromooo-monero2017-02-211-14/+23
|/
* Fix core_tests breaking on startupmoneromooo-monero2017-02-211-0/+2
| | | | | | | | | | You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
* core: add p2p bind port options from net_nodemoneromooo-monero2017-02-211-0/+4
| | | | | | | | They're now used by core to determine the data directory to use for the txpool directory. This fixes an assert in the core tests, which don't use the RPC server, which normally initializes the P2P code.
* Merge pull request #1727Riccardo Spagni2017-02-214-41/+119
|\ | | | | | | 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-134-41/+119
| | | | | | | | This speeds up operations such as serving blocks to syncing peers
* | Merge pull request #1724Riccardo Spagni2017-02-211-1/+1
|\ \ | | | | | | | | | cca95c1c blockchain_db: do not throw on expected partial results getting keys (moneromooo-monero)
| * | blockchain_db: do not throw on expected partial results getting keysmoneromooo-monero2017-02-131-1/+1
| |/ | | | | | | | | | | | | | | | | When scanning for outputs used in a set of incoming blocks, we expect that some of the inputs in their transactions will not be found in the blockchain, as they could be in previous blocks in that set. Those outputs will be scanned there at a later point. In this case, we add a flag to control wehther an output not being found is expected or not.
* | Merge pull request #1731Riccardo Spagni2017-02-211-1/+1
|\ \ | | | | | | | | | | | | | | | a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
| * | core: add a missing newline on a string to be loggedmoneromooo-monero2017-02-141-1/+1
| |/
* | core: updates can now be downloaded (and SHA256 hash checked)moneromooo-monero2017-02-201-0/+30
| |
* | core: test key images against validity domainmoneromooo-monero2017-02-202-0/+28
| |
* | Optionally query moneropulse DNS records to check for updatesmoneromooo-monero2017-02-202-0/+64
| | | | | | | | | | It just checks and prints a message if there is a new version for now.
* | core: display any fork warning at startup toomoneromooo-monero2017-02-201-1/+1
| | | | | | | | This is a good time for the operator to be around and see it
* | Merge pull request #1748Riccardo Spagni2017-02-213-58/+4
|\ \ | | | | | | | | | | | | | | | | | | bed2d9f2 Get rid of directory lock (Howard Chu) 2e913676 Handle map resizes from other processes (Howard Chu) bf1348b7 Can't cache num_txs or num_outputs either (Howard Chu) dc53e9ee Add a few read txns to streamline (Howard Chu)
| * | Get rid of directory lockHoward Chu2017-02-182-58/+0
| | | | | | | | | | | | We don't need it any more. Fixes issue #1633
| * | Add a few read txns to streamlineHoward Chu2017-02-181-0/+4
| |/ | | | | | | Slight perf gain, but mainly to reduce spam at loglevel 3
* / tx_pool: revert template filling changesmoneromooo-monero2017-02-201-0/+16
|/ | | | They are not ready yet
* tx_pool: add a debug message when adding a tx to the poolmoneromooo-monero2017-02-121-0/+1
|
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-0830-5388/+616
|
* bugfix: infinite recursion in get_account_address_from_str_or_urlkenshi842017-02-051-1/+1
|
* Merge pull request #1664Riccardo Spagni2017-02-041-0/+2
|\ | | | | | | b5cb8861 core: fix integrated addresses breaking with auto zero change (moneromooo-monero)
| * core: fix integrated addresses breaking with auto zero changemoneromooo-monero2017-02-021-0/+2
| | | | | | | | | | | | | | Zero change is sent to a random address, which confuses the code which determines which key to use to encrypt the payment id. Ignore zero amounts for this purpose, so the payment id gets encrypted with the real destination's key.
* | Merge pull request #1641Riccardo Spagni2017-02-021-1/+11
|\ \ | |/ |/| | | ca94d0a4 Separate data per P2P port (Miguel Herranz)
| * Separate data per P2P portMiguel Herranz2017-01-281-1/+11
| | | | | | | | | | | | | | | | poolstate.bin and p2pstate.bin are stored in .bitmonero/ if the default P2P port is being used. If another port is used both files are stored in .bitmonero/PORTNUMBER/.
* | Merge pull request #1642Riccardo Spagni2017-02-021-0/+1
|\ \ | | | | | | | | | | | | 3ae79a59 core: set missing verifivation_failed flag when rejecting a tx (moneromooo-monero) ea6549e9 core_tests: decrease trace level from trace to debug (moneromooo-monero)
| * | core: set missing verifivation_failed flag when rejecting a txmoneromooo-monero2017-01-281-0/+1
| |/ | | | | | | This fixes two core rct tests
* | Merge pull request #1631Riccardo Spagni2017-02-021-4/+8
|\ \ | | | | | | | | | | | | | | | 58e82506 Blockfill - Sort tx pool correctly (Alexis Enston) 5f7a8741 Blockfill - Take TX fees into account properly (Alexis Enston) 4ecab0d8 Consider empty block when filling with TXs (Alexis Enston)
| * | Blockfill - Sort tx pool correctlyAlexis Enston2017-01-251-2/+2
| | |
| * | Blockfill - Take TX fees into account properlyAlexis Enston2017-01-251-1/+1
| | |
| * | Consider empty block when filling with TXsAlexis Enston2017-01-251-1/+5
| |/
* | Merge pull request #1627Riccardo Spagni2017-02-022-1/+43
|\ \ | | | | | | | | | 55a8e982 moved get_account_address_from_str_or_url from libcommon to libcryptonote_core (kenshi84)
| * | moved get_account_address_from_str_or_url from libcommon to libcryptonote_corekenshi842017-01-242-1/+43
| |/
* | Merge pull request #1617Riccardo Spagni2017-02-027-32/+28
|\ \ | |/ |/| | | | | | | 0644eed7 Remove boost/foreach.cpp includes (Miguel Herranz) 36dd3e23 Replace BOOST_REVERSE_FOREACH with ranged for (Miguel Herranz) 629e3101 Replace BOOST_FOREACH with C++11 ranged for (Miguel Herranz)
| * Remove boost/foreach.cpp includesMiguel Herranz2017-01-225-5/+0
| |
| * Replace BOOST_REVERSE_FOREACH with ranged forMiguel Herranz2017-01-221-1/+2
| |
| * Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz2017-01-224-26/+26
| |
* | Update log messages to reflect fact we no longer need to type `exit` to save ↵NanoAkron2017-01-231-5/+4
|/ | | | database before quitting
* Merge pull request #1615Riccardo Spagni2017-01-222-0/+10
|\ | | | | | | f0989893 core: cache tx hashes of failing semantics txes (moneromooo-monero)
| * core: cache tx hashes of failing semantics txesmoneromooo-monero2017-01-222-0/+10
| |
* | Merge pull request #1610Riccardo Spagni2017-01-224-5/+10
|\ \ | | | | | | | | | b70ab128 rpc: fix orphan_status when getting blocks (moneromooo-monero)
| * | rpc: fix orphan_status when getting blocksmoneromooo-monero2017-01-224-5/+10
| |/ | | | | | | It was always set to false, even for orphan blocks
* / core: early out in handle_incoming_tx if already in pool or blockchainmoneromooo-monero2017-01-211-0/+12
|/
* core: don't try to deserialize an empty extra to remove a fieldmoneromooo-monero2017-01-161-0/+2
|
* Change logging to easylogging++moneromooo-monero2017-01-1611-178/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #1577Riccardo Spagni2017-01-153-0/+36
|\ | | | | | | feb499aa core: check block version for alt chains too (moneromooo-monero)