summaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-218-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).
* | Merge pull request #4903Riccardo Spagni2018-12-125-0/+62
|\ \ | | | | | | | | | dc1c1252 add command pop_blocks (Jason Wong)
| * | add command pop_blocksJason Wong2018-11-285-0/+62
| |/ | | | | | | | | | | add new public method to Blockchain and update according to code review update after review: better lock/unlock, try catch and coding style
* | Merge pull request #4894Riccardo Spagni2018-12-041-16/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero) 1a0733e5 windows_service: fix memory leak (moneromooo-monero) 0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero) 5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero) d4f50cb1 remove some unused code (moneromooo-monero) 61163971 a few minor (but easy) performance tweaks (moneromooo-monero) 30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
| * | remove some unused codemoneromooo-monero2018-11-231-16/+1
| |/ | | | | | | Found by codacy.com
* | Merge pull request #4859Riccardo Spagni2018-12-042-7/+3
|\ \ | |/ |/| | | 6f2497bc Don't cache nettype in core_rpc_server use m_core (doy-lee)
| * Don't cache nettype in core_rpc_server use m_coredoy-lee2018-11-162-7/+3
| | | | | | | | | | | | | | This can go out of sync with m_core's nettype if you run in fakechain mode since entering fakechain mode is done through code not the command line and core_rpc_server only looks at the command line to figure out the nettype.
* | Merge pull request #4777Riccardo Spagni2018-11-161-4/+4
|\ \ | |/ |/| | | c17a1d43 daemon: use msg_writer, not cout, to display information (moneromooo-monero)
| * daemon: use msg_writer, not cout, to display informationmoneromooo-monero2018-11-011-4/+4
| |
* | Merge pull request #4648Riccardo Spagni2018-11-011-1/+13
|\ \ | |/ |/| | | a7bffead daemon: fix base fee stating /kB even when it is per byte (moneromooo-monero)
| * daemon: fix base fee stating /kB even when it is per bytemoneromooo-monero2018-10-191-1/+13
| |
* | Merge pull request #4609Riccardo Spagni2018-10-261-1/+1
|\ \ | | | | | | | | | e54e5668 daemon: Show mining address (Ricardo de Vries)
| * | daemon: Show mining addressRicardo de Vries2018-10-181-1/+1
| |/
* | Merge pull request #4536Riccardo Spagni2018-10-262-19/+10
|\ \ | |/ |/| | | fd62b6e7 blocks: use auto-generated .c files instead of 'LD -r -b binary' (xiphon)
| * blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2018-10-222-19/+10
| |