summaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAgeFilesLines
* Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-211-1/+3
|
* password: do not use line input on windowsmoneromooo-monero2019-05-101-5/+1
| | | | | | This keeps its builtin command editing away Thanks iDunk for testing on Windows
* Windows: fix a build error in MSYS2 with boost 1.70.0iDunk54002019-04-181-0/+3
|
* Merge pull request #5408Riccardo Spagni2019-04-151-0/+1
|\ | | | | | | c4f8a8a6 build fix: combinator.h stdexcept missing include (Dusan Klinec)
| * build fix: combinator.h stdexcept missing includeDusan Klinec2019-04-071-0/+1
| |
* | Merge pull request #5392Riccardo Spagni2019-04-151-5/+2
|\ \ | | | | | | | | | a2195b9b crypto: replace rand<T>()%N idiom with unbiased rand_idx(N) (stoffu)
| * | crypto: replace rand<T>()%N idiom with unbiased rand_idx(N)stoffu2019-04-041-5/+2
| | |
* | | Merge pull request #5367Riccardo Spagni2019-04-112-5/+5
|\ \ \ | |_|/ |/| | | | | 07b716bf util: name replace_file arguments better (moneromooo-monero)
| * | util: name replace_file arguments bettermoneromooo-monero2019-03-292-5/+5
| | | | | | | | | | | | It was confusing unless you read code and the rename(2) man page.
* | | Merge pull request #5342Riccardo Spagni2019-04-061-3/+3
|\ \ \ | |_|/ |/| | | | | 849a768f perf_timer: move some debug levels to info for consistency (moneromooo-monero)
| * | perf_timer: move some debug levels to info for consistencymoneromooo-monero2019-03-241-3/+3
| |/
* | Merge pull request #5327Riccardo Spagni2019-04-012-0/+38
|\ \ | | | | | | | | | c23ea796 New interactive daemon command 'print_net_stats': Global traffic stats (rbrunner7)
| * | New interactive daemon command 'print_net_stats': Global traffic statsrbrunner72019-03-242-0/+38
| | |
* | | Merge pull request #5306Riccardo Spagni2019-04-011-5/+5
|\ \ \ | |_|/ |/| | | | | 8a97563a Use threadpool instead of new threads for DNS queries (Howard Chu)
| * | Use threadpool instead of new threads for DNS queriesHoward Chu2019-03-171-5/+5
| | |
* | | dns_utils: really add default DNSSEC servers on failuremoneromooo-monero2019-03-201-3/+2
| |/ |/| | | | | Coverity 196597
* | Merge pull request #5198Riccardo Spagni2019-03-191-6/+34
|\ \ | | | | | | | | | 9c4d403a dns_utils: use fallback if the default resolver does not support DNSSEC (moneromooo-monero)
| * | dns_utils: use fallback if the default resolver does not support DNSSECmoneromooo-monero2019-02-271-6/+34
| | |
* | | Merge pull request #5192Riccardo Spagni2019-03-171-2/+2
|\ \ \ | | | | | | | | | | | | | | | | d0e07b3d performance_tests: fix NetBSD build (moneromooo-monero) 7d88d8f2 discontinue use of alloca (moneromooo-monero)
| * | | discontinue use of allocamoneromooo-monero2019-02-251-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetBSD emits: warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. not -std=c89). and man 3 alloca says: Normally, gcc(1) translates calls to alloca() with inlined code. This is not done when either the -ansi, -std=c89, -std=c99, or the -std=c11 option is given and the header <alloca.h> is not included. Otherwise, (without an -ansi or -std=c* option) the glibc version of <stdlib.h> includes <alloca.h> and that contains the lines: #ifdef __GNUC__ #define alloca(size) __builtin_alloca (size) #endif It looks like alloca is a bad idea in modern C/C++, so we use VLAs for C and std::vector for C++.
* | | Merge pull request #5179Riccardo Spagni2019-03-171-4/+4
|\ \ \ | | | | | | | | | | | | 7c09882a dns_utils: remove MoneroPulse/checkpoints mention in TXT record code (moneromooo-monero)
| * | | dns_utils: remove MoneroPulse/checkpoints mention in TXT record codemoneromooo-monero2019-02-211-4/+4
| |/ / | | | | | | | | | This code is used for more than just these
* | | Merge pull request #5061Riccardo Spagni2019-03-1735-35/+35
|\ \ \ | | | | | | | | | | | | 1f2930ce Update 2019 copyright (binaryFate)
| * | | Update 2019 copyrightbinaryFate2019-03-0535-35/+35
| | |/ | |/|
* / | timings: fix errno.h mispelt as error.hmoneromooo-monero2019-03-071-1/+1
|/ /
* | Merge pull request #5146Riccardo Spagni2019-03-041-1/+1
|\ \ | | | | | | | | | 4a9257b4 Support docker for gitian builds (TheCharlatan)
| * | Support docker for gitian buildsTheCharlatan2019-02-141-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | Building with docker is arguably easier and more familiar to most people than either kvm, or lxc. This commit also relaxes the back compat requirement a bit. 32 bit linux now uses glibc version 2.0. Also, the docker shell could not handle gcc arguments containing spaces, so the explicit '-DFELT_TYPE' declaration was dropped. Lastly, this removes some packages from the osx descriptor.
* | Merge pull request #5102Riccardo Spagni2019-03-044-0/+162
|\ \ | | | | | | | | | 1eef0565 performance_tests: better stats, and keep track of timing history (moneromooo-monero)
| * | performance_tests: better stats, and keep track of timing historymoneromooo-monero2019-01-284-0/+162
| | |
* | | Merge pull request #4054Riccardo Spagni2019-03-041-2/+2
|\ \ \ | | | | | | | | | | | | 24569454 epee: add SSL support (moneromooo-monero)
| * | | epee: add SSL supportmoneromooo-monero2019-02-021-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
* / | notify: fix tokenizing being too strictmoneromooo-monero2019-03-041-1/+1
|/ /
* | notify: handle arbitrary tagsmoneromooo-monero2019-01-282-4/+20
| |
* | notify: warn if the spec contains one of '"\moneromooo-monero2019-01-281-0/+2
| | | | | | | | These aren't processed as a shell does, so this may surprise users
* | common: set MONERO_DEFAULT_LOG_CATEGORY for notify and spawnmoneromooo-monero2019-01-282-0/+6
|/
* Pruningmoneromooo-monero2019-01-224-1/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
* i18n: filter LANG/LC_LANG for valid characters, and handle @moneromooo-monero2019-01-081-0/+14
| | | | | If there are more valid characters, add them in, I did not find an actual list.
* Merge pull request #4954Riccardo Spagni2019-01-062-9/+41
|\ | | | | | | | | | | 93c59b29 perf_timer: check allowed categories before logging (moneromooo-monero) 6a507dab perf_timer: add a way to get and reset the current time (moneromooo-monero) c1581a5b perf_timer: only log to file (moneromooo-monero)
| * perf_timer: check allowed categories before loggingmoneromooo-monero2018-12-071-8/+21
| |
| * perf_timer: add a way to get and reset the current timemoneromooo-monero2018-12-072-2/+18
| |
| * perf_timer: only log to filemoneromooo-monero2018-12-071-3/+6
| |
* | Merge pull request #4960luigi11112018-12-311-0/+4
|\ \ | | | | | | | | | b56b5b5 ignore child process when exec (jtgrassie)
| * | ignore child process when execJethro Grassie2018-12-081-0/+4
| |/
* | Merge pull request #4957luigi11112018-12-311-1/+1
|\ \ | | | | | | | | | 0e2f5cb perf_timer: make all logs Info level (moneromooo-monero)
| * | perf_timer: make all logs Info levelmoneromooo-monero2018-12-081-1/+1
| |/ | | | | | | and make them not default at log level 1
* | Merge pull request #4944luigi11112018-12-311-3/+29
|\ \ | | | | | | | | | | | | 1505dd3 util: set MONERO_DEFAULT_LOG_CATEGORY (moneromooo-monero) db57374 util: use fcntl instead of flock, for compatibility (moneromooo-monero)
| * | util: use fcntl instead of flock, for compatibilitymoneromooo-monero2018-12-061-3/+26
| | | | | | | | | | | | in particular with NFS
| * | util: set MONERO_DEFAULT_LOG_CATEGORYmoneromooo-monero2018-12-051-0/+3
| | | | | | | | | | | | Otherwise it'd end up with whatever was included last
* | | Merge pull request #4929luigi11112018-12-312-0/+102
|\ \ \ | | | | | | | | | | | | 5a76933 Add glibc back compat code (TheCharlatan)
| * | | Add glibc back compat codeTheCharlatan2018-12-042-0/+102
| | | | | | | | | | | | | | | | | | | | To ensure that the binaries compiled by gitian run across many linux distributions, enforce 2.17 as the minimum libc version supported.