summaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* dns_utils: simplify string handling and fix leakmoneromooo-monero2015-08-301-5/+1
|
* dns_utils: add a const where possiblemoneromooo-monero2015-08-272-2/+2
|
* dns_utils: lock access to the singletonmoneromooo-monero2015-08-271-0/+4
| | | | This avoids races which could result in two objects being created
* dns: make ctor privatemoneromooo-monero2015-08-272-1/+15
| | | | | | | This ensures one can't instanciate a DNSResolver object by mistake, but uses the singleton. A separate create static function is added for cases where a new object is explicitely needed.
* Add missing file - i18n.cppmoneromooo-monero2015-07-151-0/+297
|
* Translatable strings for simplewalletmoneromooo-monero2015-07-142-2/+40
| | | | | | | The system is mostly the Qt system, but we don't use Qt to avoid the dependencies. See README.i18n for details.
* Set dnssec_valid value correctly in dns_utils; fix address_from_url testRostislav2015-06-201-3/+3
|
* dns_utils: simpify smart pointer use, and use for url strings toomoneromooo-monero2015-06-072-39/+46
| | | | OK, I admit I wanted to template this struct for fun too.
* cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni2015-05-313-0/+84
|
* Allow name@domain.tld for OpenAlias lookupswarptangent2015-05-192-0/+25
| | | | | | | | | | | | | | | | | | Based on tewinget's update. Make OpenAlias address format independent of existing DNS functions. Add tests. Test: make debug-test cd build/debug/tests/unit_tests # test that regular DNS functions work, including IPv4 lookups. # also test function that converts OpenAlias address format make && ./unit_tests --gtest_filter=DNSResolver* # test that OpenAlias addresses like donate@getmonero.org work from # wallet tools make && ./unit_tests --gtest_filter=AddressFromURL.Success
* Revert "Allow name@domain.tld for OpenAlias lookups"warptangent2015-05-192-25/+14
| | | | This reverts commit b18368b635ba08aea541ef52ebc74180822644a2.
* Allow name@domain.tld for OpenAlias lookupsThomas Winget2015-04-292-14/+25
|
* [fix] log level change. compilation: dns, testsrfree2monero2015-04-101-1/+1
| | | | | old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
* Merge pull request #252Riccardo Spagni2015-04-023-1/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 618f20c Network 1.7; Quieted the debug a bit. (rfree2monero) 391c7f9 Utils: use const, document dbg. Less default debug (rfree2monero) 44f4234 [fix] mac os x includes std::random... (rfree2monero) 162c993 Network 1.6: network limits, logging, +doxy (rfree2monero) a3b2226 my changelog (rfree2monero) 2900b1e doxygen files (rfree2monero) 1489310 doxygen related tool (rfree2monero) f9dba47 added windows_stream.* console colors (rfree2monero) c511abf remerged; commands JSON. logging upgrade. doxygen (rfree2monero) f79821a fix locking in count-peers thread (2) (rfree2monero) 0198ffb 2014 network limit 1.3 fix log/path/data +utils (rfree2monero) ae2a506 2014 network limit 1.2 +utils +toc -doc -drmonero (rfree2monero) 0f06dca fixed size_t on windows (rfree2monero) 39fc63f removed not needed <netinet/in.h> (rfree2monero) 5ce4256 2014 network limit 1.1 +utils +toc -doc -drmonero (rfree2monero) eabb519 2014 network limit 1.0a +utils +toc -doc -drmonero (rfree2monero)
| * remerged; commands JSON. logging upgrade. doxygenrfree2monero2015-04-013-1/+24
| |
* | Fixed DNS resolution bug in WindowsThomas Winget2015-04-021-4/+2
|/ | | | | | | | | | | | Due to a bug in unbound, we were passing a string containing a null character to ub_ctx_resolvconf and ub_ctx_hosts rather than a NULL pointer. On *nix this wasn't causing headache, but on Windows this was causing unbound to not correctly load DNS settings from the OS. Note on the bug: in a Windows-specific code branch in the function ub_ctx_hosts(), if the hosts file specified was a NULL pointer, a call to getenv() was stored in a local char* and later freed. This is incorrect, as we do not own that data, and caused the program to crash.
* DNSSEC added (hardcoded key)Thomas Winget2015-03-241-0/+66
| | | | | | | | DNSSEC is now implemented with the hardcoded key from unbound. This will need to be not hardcoded in the future, but is okay for now. Unit tests updated for DNSSEC (as well as for the fact that, contrary to previous assumption, example.com does not have a static IP address).
* Hopefully fixes build on WindowsThomas Winget2015-03-202-1/+13
|
* Daemonize changes pulled in -- daemon buildsThomas Winget2015-02-244-0/+272
| | | | | | | 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.
* year updated in licenseRiccardo Spagni2015-01-0214-14/+14
|
* cmake: support 2.8.7Ben Boeckel2014-10-241-1/+1
| | | | | | Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
* cmake: handle private vs. public headersBen Boeckel2014-10-231-2/+10
|
* cmake: refactor common code with librariesBen Boeckel2014-10-231-9/+1
|
* cmake: put each library into its own directoryBen Boeckel2014-10-231-0/+64
| | | | | This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
* build libunbound from external if no local libunbound or for static buildsRiccardo Spagni2014-10-061-1/+2
|
* quick hacky fix for broken TXT readsRiccardo Spagni2014-10-031-1/+9
|
* updated DNSResolver/things that use it for DNSSECThomas Winget2014-09-302-6/+14
| | | | | | | Note: DNSResolver does not yet *use* DNSSEC, but rather this commit is preparation for including DNSSEC validation. The function in src/wallet/wallet2.cpp that uses DNSResolver still needs its parameters updated accordingly.
* Revert "low risk, potentially varint overflow bug patched thanks to BBR"Riccardo Spagni2014-09-251-24/+1
| | | | This reverts commit 4e2b2b942daa4206ec44c66e59863670dfe3fde4.