aboutsummaryrefslogtreecommitdiff
path: root/src/common (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-03-11Use boost::thread instead of std::threadHoward Chu1-2/+2
and all other associated IPC
2016-02-23dns_utils: const compatibility with older libunboundmoneromooo-monero1-22/+16
https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515
2016-02-18std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu1-2/+2
Use boost...
2016-02-08core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero2-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.
2016-01-25Merge pull request #622Riccardo Spagni1-1/+1
e514f0a even more typos (Henning Kopp) 9abc4b8 more typos fixed (Henning Kopp) 0693f3c fixed typo (Henning Kopp)
2016-01-25more typos fixedHenning Kopp1-1/+1
2016-01-21OpenBSD support for Monero.me0wmix1-0/+2
2015-12-31updated copyright yearRiccardo Spagni19-19/+19
2015-12-19Add missing semicolons after log statementsmoneromooo-monero1-1/+1
2015-12-15Replace tabs and remove trailing whitespacewarptangent1-24/+24
2015-12-15Optionally restrict DNS queries to TCPwarptangent1-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
2015-12-13add a --fakechain argument for testsmoneromooo-monero2-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.
2015-12-08Register daemon command line arguments to core if they're used in coremoneromooo-monero2-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.
2015-11-30Merge pull request #515Riccardo Spagni1-0/+5
0921f5b util: use putenv instead of setenv for mingw (moneromooo-monero)
2015-11-29wallet: cancellable refreshmoneromooo-monero2-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.
2015-11-25util: use putenv instead of setenv for mingwmoneromooo-monero1-0/+5
2015-11-21Fix startup crash when using a locale boost does not likemoneromooo-monero2-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.
2015-11-21i18n: allow language to be passed as a parametermoneromooo-monero2-5/+7
If empty, it will still be fetched from the environment
2015-10-27common: const and init list pedantrymoneromooo-monero2-2/+3
2015-09-27dns_utils: fix wrong assertsmoneromooo-monero1-2/+2
Braino.
2015-08-30dns_utils: remove unnecessary string conversionmoneromooo-monero1-5/+2
2015-08-30dns_utils: factor the fetching code for different DNS record typesmoneromooo-monero2-59/+34
2015-08-30dns_utils: simplify string handling and fix leakmoneromooo-monero1-5/+1
2015-08-27dns_utils: add a const where possiblemoneromooo-monero2-2/+2
2015-08-27dns_utils: lock access to the singletonmoneromooo-monero1-0/+4
This avoids races which could result in two objects being created
2015-08-27dns: make ctor privatemoneromooo-monero2-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.
2015-07-15Add missing file - i18n.cppmoneromooo-monero1-0/+297
2015-07-14Translatable strings for simplewalletmoneromooo-monero2-2/+40
The system is mostly the Qt system, but we don't use Qt to avoid the dependencies. See README.i18n for details.
2015-06-20Set dnssec_valid value correctly in dns_utils; fix address_from_url testRostislav1-3/+3
2015-06-07dns_utils: simpify smart pointer use, and use for url strings toomoneromooo-monero2-39/+46
OK, I admit I wanted to template this struct for fun too.
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni3-0/+84
2015-05-19Allow name@domain.tld for OpenAlias lookupswarptangent2-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
2015-05-19Revert "Allow name@domain.tld for OpenAlias lookups"warptangent2-25/+14
This reverts commit b18368b635ba08aea541ef52ebc74180822644a2.
2015-04-29Allow name@domain.tld for OpenAlias lookupsThomas Winget2-14/+25
2015-04-10[fix] log level change. compilation: dns, testsrfree2monero1-1/+1
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
2015-04-02Merge pull request #252Riccardo Spagni3-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)
2015-04-02Fixed DNS resolution bug in WindowsThomas Winget1-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.
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero3-1/+24
2015-03-24DNSSEC added (hardcoded key)Thomas Winget1-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).
2015-03-20Hopefully fixes build on WindowsThomas Winget2-1/+13
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget4-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.
2015-01-02year updated in licenseRiccardo Spagni14-14/+14
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+10
2014-10-23cmake: refactor common code with librariesBen Boeckel1-9/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+64
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
2014-10-06build libunbound from external if no local libunbound or for static buildsRiccardo Spagni1-1/+2
2014-10-03quick hacky fix for broken TXT readsRiccardo Spagni1-1/+9
2014-09-30updated DNSResolver/things that use it for DNSSECThomas Winget2-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.
2014-09-25Revert "low risk, potentially varint overflow bug patched thanks to BBR"Riccardo Spagni1-24/+1
This reverts commit 4e2b2b942daa4206ec44c66e59863670dfe3fde4.
2014-09-24Remove LDNS dep and fix a bug in libunbound const correctness fixThomas Winget2-4/+4
2014-09-24Removed ldns dependencyThomas Winget2-4/+9
ldns dependency was only still around for constants defined in ldns/rr.h, but those constants are RFC specified DNS constants, and to reduce deps have been replicated in dns_utils.h instead of including ldns/rr.h.
2014-09-24low risk, potentially varint overflow bug patched thanks to BBRRiccardo Spagni1-1/+24
2014-09-24libunbound has const correctness issues...Thomas Winget1-5/+19
2014-09-24temp commitThomas Winget1-15/+42
2014-09-23Added function to check syntax of URL for DNS lookupThomas Winget2-8/+44
For now, simply checks for '.' character, but that will be easy to change in the future if necessary/desired.
2014-09-23change to allow (at least a bit) for multiple TXT recordsThomas Winget2-9/+14
2014-09-23Monero addres from DNS TXT record implemented, tests passThomas Winget2-24/+45
Still need to deal with DNSSEC and optional fields in the TXT record.
2014-09-23Use the loop iterator, previous version of me.Thomas Winget1-2/+2
2014-09-23ipv4 and ipv6 resolution workingThomas Winget2-21/+125
IPv4 and IPv6 name resolution working. Unit tests written (and passing). net_node.{h,inl} code modified to use DNS seeds.
2014-09-23Initial commit of DNS codeThomas Winget2-0/+141
2014-09-15Separate testnet default data dirZachary Michaels2-0/+2
2014-09-11HOW DO I ENGLISH?jebes1-1/+1
2014-09-11mispelled brief, corrected itjebes2-14/+14
2014-09-11HOW DO I GIT?jebes1-1/+1
2014-09-11Documented varintjebes4-40/+80
2014-09-09commented util.hjebes2-8/+45
2014-07-23License updated to BSD 3-clausefluffypony11-34/+319
2014-07-01Fix assert bug in base58 encodeZachary Michaels1-1/+1
The previous implementation was almost certainly a typo. full_block_size is the maximum index in the encoded_block_sizes array, and size is used as an index in this array. So now 1 <= size <= full_block_size == 8 instead of 1 <= size <= sizeof(full_block_size) == size_of(size_t) == ? (maybe 4 on 32-bit systems!)
2014-06-12DRY cin input_line (and test replacement of non-DRY usage)Thomas Winget2-0/+15
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget1-0/+6
implemented (but not tested\!)
2014-05-03initial [broken] updatemydesktop3-5/+80
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-0/+2
2014-03-20some fixesAntonio Juarez4-5/+64
2014-03-03moved all stuff to githubAntonio Juarez11-0/+1249