summaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAgeFilesLines
* 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
* adding thread_group for managing async tasksLee Clagett2016-11-023-2/+301
|
* perf_timer: format string fix for 32 bitsmoneromooo-monero2016-10-201-1/+1
|
* perf_timer: new class and macros to make performance logs easiermoneromooo-monero2016-10-103-1/+142
| | | | Call PERF_TIMER(name), which is scoped.
* Merge pull request #1139Riccardo Spagni2016-10-041-3/+3
|\ | | | | | | | | | | | | | | | | | | | | 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)
| * Dropped "bit" from bitmonero.Randi Joseph2016-09-261-3/+3
| |
* | core: make the sync chunk block count overridablemoneromooo-monero2016-09-242-0/+7
|/
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-182-0/+2
| | | | | | | | 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.
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-1/+3
| | | | | | | | | | | | | | 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.
* More for PR#999Howard Chu2016-08-291-1/+1
|
* wallet: fix some "may be used uninitialized" warningsmoneromooo-monero2016-08-281-2/+2
| | | | | The compiler can't always work out the _found booleans are set iff the value is initialized.
* cmake,common: flag for stack traceredfish2016-07-272-6/+5
| | | | | | | By default the flag is enabled whenever libunwind is found on the system, with the exception of static build on OSX (for which we can't install the throw hook #932 due to lack of support for --wrap in OSX ld64 linker).
* common: stack trace: make clang happy with func ptrsredfish2016-07-101-9/+29
| | | | | | | | | | | | | | | | | | Tested that it builds with: gcc 6.1.1, STATIC=OFF,i686 gcc 6.1.1, STATIC=OFF,armv7h clang 3.8, STATIC=OFF,i686 clang 3.8, STATIC=OFF,armv7h gcc 6.1.1, STATIC=ON,i686 clang 3.8, STATIC=ON,i686 Also tested that stack trace is generated fine on exception on: i686, gcc 6.1.1, STATIC=OFF (didn't bother testing all the other platforms/configs) This should fix the build problem on OSX (#871, #901), but I don't have OSX, so I could only test Clang on Linux.
* remove POSIX_C_SOURCE and remove dlfcn.h for static buildsluigi11112016-06-211-0/+2
| | | | The former was a faulty "fix" for gmtime_r not existing on Windows. The latter is needed only for dynamic builds, and is not included with msys2, which ends up fine because Windows is only built static at this time.
* Merge pull request #868Riccardo Spagni2016-06-211-2/+2
|\ | | | | | | | | 15c2b69 common: fix build without libunwind (moneromooo-monero) f72388c CMakeLists: fix build without libunwind (moneromooo-monero)
| * common: fix build without libunwindmoneromooo-monero2016-06-201-2/+2
| |
* | Merge pull request #775Riccardo Spagni2016-06-193-2/+168
|\| | | | | | | | | e409e59 Print stack trace on exceptions (moneromooo-monero) ef4ff42 connection_basic: avoid gratuitous exception (moneromooo-monero)
| * Print stack trace on exceptionsmoneromooo-monero2016-04-283-2/+168
| | | | | | | | | | | | if libunwind is found. Useful for debugging logs.
* | add a --max-concurrency flagmoneromooo-monero2016-04-282-0/+26
| | | | | | | | | | | | It sets the max number of threads to use for a parallel job. This is different that the number of total threads, since monero binaries typically start a lot of them.
* | util: add a function to set umask to 077moneromooo-monero2016-04-062-0/+11
| | | | | | | | Useful to ensure files are written without group/other read rights.
* | common: new json_util.hmoneromooo-monero2016-03-271-0/+53
|/ | | | With code to help factor out reading typed fields from JSON
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-213-140/+0
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-193-0/+140
| | | | Useful for debugging users' logs
* Use boost::thread instead of std::threadHoward Chu2016-03-111-2/+2
| | | | and all other associated IPC
* dns_utils: const compatibility with older libunboundmoneromooo-monero2016-02-231-22/+16
| | | | https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515
* std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu2016-02-181-2/+2
| | | | Use boost...
* core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero2016-02-082-6/+0
| | | | | | We also replace the --fakechain option with an optional structure containing details about configuration for the core/blockchain, for test purposes. This seems more future friendly.
* Merge pull request #622Riccardo Spagni2016-01-251-1/+1
|\ | | | | | | | | | | e514f0a even more typos (Henning Kopp) 9abc4b8 more typos fixed (Henning Kopp) 0693f3c fixed typo (Henning Kopp)
| * more typos fixedHenning Kopp2016-01-251-1/+1
| |
* | OpenBSD support for Monero.me0wmix2016-01-211-0/+2
|/
* updated copyright yearRiccardo Spagni2015-12-3119-19/+19
|
* Add missing semicolons after log statementsmoneromooo-monero2015-12-191-1/+1
|
* Replace tabs and remove trailing whitespacewarptangent2015-12-151-24/+24
|
* Optionally restrict DNS queries to TCPwarptangent2015-12-151-3/+24
| | | | | | | | | | | | | | | | | Sample use: DNS_PUBLIC=tcp torsocks bin/bitmonerod --p2p-bind-ip 127.0.0.1 Test: Run above with --log-level 4 with and without DNS_PUBLIC environment variable set. DNS debugging info should show successful DNS lookups only when DNS_PUBLIC is set to "tcp": DNS lookup for seeds.moneroseeds.se: 17 results DNS lookup for seeds.moneroseeds.ae.org: 17 results DNS lookup for seeds.moneroseeds.ch: 12 results DNS lookup for seeds.moneroseeds.li: 12 results
* add a --fakechain argument for testsmoneromooo-monero2015-12-132-0/+6
| | | | | | | | | | | The core tests use the blockchain, and reset it to be able to add test data to it. This does not play nice with the databases, since those will save that data without an explicit save call. We add a fakechain flag that the tests will set, which tells the core and blockchain code to use a separate database, as well as skip a few things like checkpoints and fixup, which only make sense for real data.
* Register daemon command line arguments to core if they're used in coremoneromooo-monero2015-12-082-0/+48
| | | | | | 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.
* Merge pull request #515Riccardo Spagni2015-11-301-0/+5
|\ | | | | | | 0921f5b util: use putenv instead of setenv for mingw (moneromooo-monero)
| * util: use putenv instead of setenv for mingwmoneromooo-monero2015-11-251-0/+5
| |
* | wallet: cancellable refreshmoneromooo-monero2015-11-292-7/+7
|/ | | | | | | | ^C while in manual refresh will cancel the refresh, since that's often an annoying thing to have to wait for. Also, a manual refresh command will interrupt any running background refresh and take over, rather than wait for the background refresh to be done, and look to be hanging.
* Fix startup crash when using a locale boost does not likemoneromooo-monero2015-11-212-0/+21
| | | | | | | | | | | | | There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used.
* i18n: allow language to be passed as a parametermoneromooo-monero2015-11-212-5/+7
| | | | If empty, it will still be fetched from the environment
* common: const and init list pedantrymoneromooo-monero2015-10-272-2/+3
|
* dns_utils: fix wrong assertsmoneromooo-monero2015-09-271-2/+2
| | | | Braino.
* dns_utils: remove unnecessary string conversionmoneromooo-monero2015-08-301-5/+2
|
* dns_utils: factor the fetching code for different DNS record typesmoneromooo-monero2015-08-302-59/+34
|