aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add IPv6 supportThomas Winget2019-07-311-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new cli options (RPC ones also apply to wallet): --p2p-bind-ipv6-address (default = "::") --p2p-bind-port-ipv6 (default same as ipv4 port for given nettype) --rpc-bind-ipv6-address (default = "::1") --p2p-use-ipv6 (default false) --rpc-use-ipv6 (default false) --p2p-require-ipv4 (default true, if ipv4 bind fails and this is true, will not continue even if ipv6 bind successful) --rpc-require-ipv4 (default true, description as above) ipv6 addresses are to be specified as "[xx:xx:xx::xx:xx]:port" except in the cases of the cli args for bind address. For those the square braces can be omitted.
* | Merge pull request #5597luigi11112019-07-244-14/+28
|\ \ | | | | | | | | | 343c0b4 add a command line option to disable ZMQ server (jtgrassie)
| * | add a command line option to disable ZMQ serverJethro Grassie2019-06-014-14/+28
| |/
* | Merge pull request #5595luigi11112019-07-241-0/+15
|\ \ | | | | | | | | | 2aa1134 daemon: display peer address type in print_cn (moneromooo-monero)
| * | daemon: display peer address type in print_cnmoneromooo-monero2019-05-311-0/+15
| |/
* | Merge pull request #5588luigi11112019-07-241-0/+1
|\ \ | | | | | | | | | cd720c7 add cumulative difficulty to diff command (wowario)
| * | add cumulative difficulty to diff commandwowario2019-05-301-0/+1
| |/
* | Merge pull request #5582luigi11112019-07-243-16/+26
|\ \ | | | | | | | | | fcfcc3a rpc: in/out peers can now return the setting's value (moneromooo-monero)
| * | rpc: in/out peers can now return the setting's valuemoneromooo-monero2019-05-303-16/+26
| |/
* | Merge pull request #5573luigi11112019-07-241-1/+1
|\ \ | | | | | | | | | c07bbd5 daemon: fix 'never seen before' time span display for peers (moneromooo-monero)
| * | daemon: fix "never seen before" time span display for peersmoneromooo-monero2019-05-241-1/+1
| |/
* | Merge pull request #5530luigi11112019-07-245-83/+0
|\ \ | | | | | | | | | 6abaaaa remove obsolete save_graph skeleton code (moneromooo-monero)
| * | remove obsolete save_graph skeleton codemoneromooo-monero2019-05-105-83/+0
| |/
* | allow blocking whole subnetsmoneromooo-monero2019-07-165-16/+60
| |
* | Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-228-5/+19
|/
* blockchain: keep a rolling long term block weight medianmoneromooo-monero2019-05-021-1/+1
|
* daemon: fix absolute/relative log file test for windowsmoneromooo-monero2019-04-161-5/+1
|
* Merge pull request #5446Riccardo Spagni2019-04-161-1/+1
|\ | | | | | | | | | | | | | | | | 7d79222f daemon: remove debug info (moneromooo-monero) 8fec0f98 functional_tests: add sweep_single test (moneromooo-monero) 9880d61b wallet_rpc_server: remove unused code (moneromooo-monero) 8a61b33d rpc: omit irrelevant fields for pool txes in gettransactions (moneromooo-monero) 56508524 rpc: add relayed in get_transaction output (moneromooo-monero) 82e510f1 rpc: set default log category in core_rpc_server.h (moneromooo-monero)
| * daemon: remove debug infomoneromooo-monero2019-04-151-1/+1
| |
* | Merge pull request #5441Riccardo Spagni2019-04-161-1/+1
|\ \ | | | | | | | | | | | | b3648232 daemon: fix ratio not being floating point (moneromooo-monero) e1b097b9 core_rpc_server: remove dummy assigning int to bool (moneromooo-monero)
| * | daemon: fix ratio not being floating pointmoneromooo-monero2019-04-141-1/+1
| |/ | | | | | | Coverity 197648
* / daemon: if a log file has a /, interpret it from the cwdmoneromooo-monero2019-04-131-1/+6
|/ | | | | | rather than from data dir where it normally is. It makes things like --log-file ./foo.log behave as you'd expect.
* Merge pull request #5378Riccardo Spagni2019-04-111-1/+1
|\ | | | | | | eda2661a Allow pruning before v10 (moneromooo-monero)
| * Allow pruning before v10moneromooo-monero2019-04-011-1/+1
| | | | | | | | | | This check is now not needed anymore, and would prevent people from using --prune-blockchain when starting a new sync
* | wallet: new option to start background miningmoneromooo-monero2019-04-041-4/+5
| | | | | | | | | | | | The setup-background-mining option can be used to select background mining when a wallet loads. The user will be asked the first time the wallet is created.
* | Merge pull request #5327Riccardo Spagni2019-04-015-0/+76
|\ \ | | | | | | | | | c23ea796 New interactive daemon command 'print_net_stats': Global traffic stats (rbrunner7)
| * | New interactive daemon command 'print_net_stats': Global traffic statsrbrunner72019-03-245-0/+76
| |/
* / daemon: init public_port in all ctorsmoneromooo-monero2019-03-201-0/+2
|/ | | | Coverity 196596
* Merge pull request #5190Riccardo Spagni2019-03-177-8/+85
|\ | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-257-8/+85
| |
* | Merge pull request #5185Riccardo Spagni2019-03-175-1/+90
|\ \ | | | | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * | daemon: new mining_status commandmoneromooo-monero2019-03-095-1/+90
| |/
* | Update 2019 copyrightbinaryFate2019-03-0517-17/+17
| |
* | Merge pull request #5125Riccardo Spagni2019-03-042-5/+12
|\ \ | | | | | | | | | 8298f42e miner: it can now autodetect the optimal number of threads (moneromooo-monero)
| * | miner: it can now autodetect the optimal number of threadsmoneromooo-monero2019-02-232-5/+12
| |/
* | Merge pull request #4054Riccardo Spagni2019-03-041-0/+2
|\ \ | | | | | | | | | 24569454 epee: add SSL support (moneromooo-monero)
| * | epee: add SSL supportmoneromooo-monero2019-02-021-0/+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.
* / ArticMine's new block weight algorithmmoneromooo-monero2019-03-041-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty. Note: the long term block weight is stored in the database, but not in the actual block itself, since it requires recalculating anyway for verification.
* Merge pull request #5062Riccardo Spagni2019-01-281-3/+3
|\ | | | | | | acfff8d0 rpc: fix internal daemon calls in restricted rpc getting partial data (moneromooo-monero)
| * rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero2019-01-281-3/+3
| |
* | Merge pull request #5080Riccardo Spagni2019-01-284-8/+44
|\ \ | |/ |/| | | d294a577 daemon: extend 'print_pl' command, optional filter by type and limit (xiphon)
| * daemon: extend 'print_pl' command, optional filter by type and limitxiphon2019-01-184-8/+44
| |
* | Pruningmoneromooo-monero2019-01-225-13/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #5019Riccardo Spagni2019-01-163-7/+23
|\ \ | | | | | | | | | 65ce387c daemon: add a +hex option to print_block (moneromooo-monero)
| * | daemon: add a +hex option to print_blockmoneromooo-monero2018-12-263-7/+23
| |/
* / daemon: print human friendly timestamp toomoneromooo-monero2018-12-261-2/+2
|/
* Merge pull request #4925Riccardo Spagni2018-12-121-10/+10
|\ | | | | | | | | | | ab783b17 easylogging++: ensure logger is initialized before main (moneromooo-monero) 9b69a0ae daemon: print monero version at startup when calling a detached daemon (moneromooo-monero) 4d71d463 mlocker: remove early page size log (moneromooo-monero)
| * daemon: print monero version at startup when calling a detached daemonmoneromooo-monero2018-11-301-10/+10
| | | | | | | | So people who want a timstamp get a timestamp
* | Merge pull request #4923Riccardo Spagni2018-12-121-2/+0
|\ \ | | | | | | | | | aba9a9c2 daemon: stop miner before we bring the whole thing down (moneromooo-monero)
| * | daemon: stop miner before we bring the whole thing downmoneromooo-monero2018-11-301-2/+0
| |/ | | | | | | | | | | This avoids the miner erroring out trying to submit blocks to a core that's already shut down (and avoids pegging the CPU while we're busy shutting down).