summaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAgeFilesLines
* core: protect precomputed block hashes with SHA256moneromooo-monero2017-02-232-0/+13
|
* updates: fix user/auto url splitmoneromooo-monero2017-02-221-1/+1
|
* updates: remove testnet casemoneromooo-monero2017-02-222-6/+3
| | | | It need not be any different
* updates: we now have a user URL, and an automatic onemoneromooo-monero2017-02-222-3/+3
| | | | So the user can use https, while the automatic does not have to
* updates: add all update serversmoneromooo-monero2017-02-221-0/+4
|
* updates: use HTTP, not HTTPSmoneromooo-monero2017-02-221-1/+1
| | | | The files are hashed and the hashes signed
* Merge pull request #1766Riccardo Spagni2017-02-2223-23/+23
|\ | | | | | | | | | | | | 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-2123-23/+23
| |
* | updates: use updates host, not downloads, for HTTPmoneromooo-monero2017-02-211-1/+1
|/
* Merge pull request #1760Riccardo Spagni2017-02-211-1/+3
|\ | | | | | | | | efdd783c add openssl to readme (Riccardo Spagni) 058eed36 cmakify openssl (Riccardo Spagni)
| * cmakify opensslRiccardo Spagni2017-02-211-1/+3
| |
* | dns_utils: fix infinite recursion when distributing empty dns_urlsanonimal2017-02-211-0/+3
|/ | | | | | load_txt_records_from_dns attempts to distribute `a = 0, b = -1` where (b = dns_urls.size() - 1) and IntType is signed integer. This results in an infinite recursion which leads to SIGSEGV.
* core: updates can now be downloaded (and SHA256 hash checked)moneromooo-monero2017-02-203-0/+176
|
* util: add a SHA256 functionmoneromooo-monero2017-02-203-1/+37
|
* Optionally query moneropulse DNS records to check for updatesmoneromooo-monero2017-02-205-2/+161
| | | | | It just checks and prints a message if there is a new version for now.
* dns_utils: fix first checked DNS entry being ignoredmoneromooo-monero2017-02-201-1/+0
|
* util: add a vercmp function to compare version numbersmoneromooo-monero2017-02-202-0/+18
| | | | | It is simple, supports simple x.y.z type numeric versions, and does not attempt any kind of validation
* dns_utils: factor TXT record loading code from checkpoint codemoneromooo-monero2017-02-202-0/+105
|
* Fixup choice of easylogging++ vs libunwind stack trace codemoneromooo-monero2017-02-121-1/+1
|
* Merge pull request #1689Riccardo Spagni2017-02-117-3/+416
|\ | | | | | | 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-067-3/+416
| |
* | extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-083-2/+3
| |
* | Merge pull request #1674Riccardo Spagni2017-02-081-0/+1
|\ \ | |/ |/| | | 92978b2c common: fix link error on at least one platform (no clue which one) (moneromooo-monero)
| * common: fix link error on at least one platform (no clue which one)moneromooo-monero2017-02-051-0/+1
| | | | | | | | Bug and fix reported by tdprime
* | Use easylogging++'s stack trace facility where possiblemoneromooo-monero2017-02-041-0/+19
|/ | | | This avoids using libunwind, which often causes trouble.
* Merge pull request #1645Riccardo Spagni2017-02-022-0/+39
|\ | | | | | | 9bd9906e Factor is_address_local code into a tools function (moneromooo-monero)
| * Factor is_address_local code into a tools functionmoneromooo-monero2017-01-282-0/+39
| |
* | Merge pull request #1629Riccardo Spagni2017-02-022-35/+17
|\ \ | | | | | | | | | c02e1cb9 Updates to epee HTTP client code - http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed (Lee Clagett)
| * | Updates to epee HTTP client codeLee Clagett2017-01-252-35/+17
| |/ | | | | | | | | | | | | | | - http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
* | Merge pull request #1627Riccardo Spagni2017-02-022-23/+0
|\ \ | | | | | | | | | 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-23/+0
| |/
* / Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz2017-01-221-3/+3
|/
* Make stack trace show up in log file with default settingsmoneromooo-monero2017-01-211-1/+1
|
* Change logging to easylogging++moneromooo-monero2017-01-167-33/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #1538Riccardo Spagni2017-01-132-7/+4
|\ | | | | | | | | | | | | aff28178 Remove db-auto-remove-logs (Miguel Herranz) 1229c685 Remove berkeley from db_type initialization (Miguel Herranz) e3090558 Show available types for db-type command (Miguel Herranz) 046ab33d Remove berkeley from blockchain_db_types (Miguel Herranz)
| * Remove db-auto-remove-logsMiguel Herranz2017-01-102-6/+0
| |
| * Show available types for db-type commandMiguel Herranz2017-01-101-1/+4
| |
* | Merge pull request #1510Riccardo Spagni2017-01-081-1/+13
|\ \ | | | | | | | | | 80abc3bc Build wallet with Android NDK (MoroccanMalinois)
| * | Build wallet with Android NDKMoroccanMalinois2017-01-051-1/+13
| |/
* / make openalias also available for solo miner; introduce namespace ↵kenshi842016-12-212-0/+162
|/ | | | tools::dns_utils; support integrated address with dns lookup
* common: add missing #include <system_error> for std::error_codemoneromooo-monero2016-12-201-0/+1
|
* Merge pull request #1462Riccardo Spagni2016-12-201-5/+20
|\ | | | | | | | | | | | | 07b9138c support importing unportable outputs (kenshi84) 2ac80075 also use portable serializer for boost_serialization_helper.h and net_node.inl, completely adandon boost/archive/binary_oarchive.hpp (kenshi84) d1d6e27a moved boost cpp into hpp since they're supposed to be header only (kenshi84) 66e6af89 added experimental boost::archive::portable_binary_{i|o}archive (kenshi84)
| * also use portable serializer for boost_serialization_helper.h and ↵kenshi842016-12-201-5/+20
| | | | | | | | net_node.inl, completely adandon boost/archive/binary_oarchive.hpp
* | Enabled HTTP auth support for monero-wallet-rpcLee Clagett2016-12-163-10/+111
|/
* thread_group: fix build on older GCCmoneromooo-monero2016-12-111-2/+0
| | | | vtnerd (original author) confirmed this is the Right Way.
* Merge pull request #1398Riccardo Spagni2016-12-041-1/+1
|\ | | | | | | f4772bae Fix a few minor typos (Pierre Boyer)
| * Fix a few minor typosPierre Boyer2016-12-041-1/+1
| |
* | Added command_line::is_yesLee Clagett2016-11-252-1/+29
|/
* Added task_region - a fork/join task implementationLee Clagett2016-11-235-77/+394
|
* thread_group: fix build with asserts enabledmoneromooo-monero2016-11-091-1/+1
| | | | See https://github.com/monero-project/monero/pull/1291