summaryrefslogtreecommitdiff
path: root/tests/core_proxy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6214luigi11112020-03-311-0/+2
|\ | | | | | | 054b4c7 protocol: request txpool contents when synced (moneromooo-monero)
| * protocol: request txpool contents when syncedmoneromooo-monero2020-03-221-0/+2
| | | | | | | | | | | | | | A newly synced Alice sends a (typically quite small) list of txids in the local tpxool to a random peer Bob, who then uses the existing tx relay system to send Alice any tx in his txpool which is not in the list Alice sent
* | p2p: remove old debug commandsAaron Hook2020-03-201-1/+0
|/
* Adding support for hidden (anonymity) txpoolLee Clagett2019-11-022-9/+10
|
* Merge pull request #5915luigi11112019-10-082-8/+16
|\ | | | | | | 8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
| * monerod can now sync from pruned blocksmoneromooo-monero2019-09-272-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
* | RandomX integrationHoward Chu2019-09-251-2/+2
|/ | | | Support RandomX PoW algorithm
* Update 2019 copyrightbinaryFate2019-03-053-3/+3
|
* cryptonote: avoid double parsing blocks when syncingmoneromooo-monero2019-03-052-3/+3
|
* Pruningmoneromooo-monero2019-01-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* protocol: option to pad transaction relay to the next kBmoneromooo-monero2018-11-061-0/+1
| | | | | | | | | To help protect one's privacy from traffic volume analysis for people using Tor or I2P. This will really fly once we relay txes on a timer rather than on demand, though. Off by default for now since it's wasteful and doesn't bring anything until I2P's in.
* replace std::list with std::vector on some hot pathsmoneromooo-monero2018-06-262-6/+6
| | | | also use reserve where appropriate
* Merge pull request #3450luigi11112018-06-081-0/+1
|\ | | | | | | 3b941be core: add get_earliest_ideal_height_for_version() (stoffu)
| * core: add get_earliest_ideal_height_for_version()stoffu2018-03-211-0/+1
| |
* | Only log an error if fork version is higher AND is not known.Thaer Khawaja2018-04-221-0/+1
|/
* Stagenetstoffu2018-03-051-1/+1
|
* options: remove testnet-* optionswhythat2018-02-161-2/+1
|
* Update 2018 copyrightxmr-eric2018-01-263-3/+3
|
* cryptonote_core does not depend on p2p anymoremoneromooo-monero2017-12-161-0/+2
| | | | | | As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
* Merge pull request #2736Riccardo Spagni2017-11-141-1/+1
|\ | | | | | | | | | | | | | | | | | | 0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
| * move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-1/+1
| | | | | | | | Those have no reason to be in a generic module
* | remove "using namespace std" from headersmoneromooo-monero2017-11-141-4/+2
|/ | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* Initialize openssl on startupmoneromooo-monero2017-10-211-1/+1
|
* Merge pull request #2469Riccardo Spagni2017-10-151-0/+1
|\ | | | | | | 7adceee6 precomputed block hashes are now in blocks of N (currently 256) (moneromooo-monero)
| * precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-181-0/+1
| | | | | | | | This shaves a lot of space off binaries
* | move checkpoints in a separate librarymoneromooo-monero2017-09-252-3/+3
| |
* | Merge pull request #2424Riccardo Spagni2017-09-252-3/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28b72b6e tx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero) 50a629b2 core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero) fee15ef1 wallet2: catch failure to parse address (moneromooo-monero) 1399e26d net_peerlist: remove dead code (moneromooo-monero) 50e09698 tx_pool: guard against failure getting tx hash (moneromooo-monero) 54cc209a wallet_rpc_server: catch failure to create directory (moneromooo-monero) 3e55099c wallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero) 7d0dde5e wallet_args: remove redundant default value for --log-file (moneromooo-monero) ed4a3350 wallet2: catch failure to save keys file (moneromooo-monero) 44434c8a wallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero) 92f2f687 core: check return value from parse_hexstr_to_binbuff (moneromooo-monero) 5475692e wallet2_api: remove an unused, uninitialized, field (moneromooo-monero) a7ba3de1 libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero) b2763ace wallet2_api: init error code to "no error" in the ctor (moneromooo-monero) b5faac53 get_blockchain_top now returns void (moneromooo-monero) 2e44d8f2 wallet_rpc_server: guard against exceptions (moneromooo-monero) 4230876b simplewallet: guard against I/O exceptions (moneromooo-monero) 06c1e057 daemon: initialize decode_as_json in RPC request (moneromooo-monero) 11f71af5 http_base: init size_t in http_request_info ctor (moneromooo-monero)
| * | get_blockchain_top now returns voidmoneromooo-monero2017-09-252-3/+2
| |/ | | | | | | | | | | It was always returning true, and could not be foreseen to usefully return errors in the future. This silences CID 162652 as well as saves some checking code in a few places.
* / build: auto update version info without manually deleting version.hstoffu2017-09-211-0/+1
|/
* Add a --fluffy-blocks option to relay blocks as fluffy blocksmoneromooo-monero2017-09-031-0/+1
| | | | Defaults to off, but fluffy blocks are forced enabled on testnet
* Revert "Cleanup test impact of moving blockchain_db_types()"Howard Chu2017-08-291-2/+0
| | | | This reverts commit 3dd34a49efd2954b0a5eb020abd168d9379b98c4.
* Merge pull request #2314Riccardo Spagni2017-08-261-0/+1
|\ | | | | | | | | c22d22e2 Cleanup test impact of adding safesyncmode() method (Howard Chu) 9a859844 Toggle SAFE syncmode on and off automatically (Howard Chu)
| * Cleanup test impact of adding safesyncmode() methodHoward Chu2017-08-221-0/+1
| |
* | Cleanup test impact of moving blockchain_db_types()Howard Chu2017-08-221-0/+2
|/
* Merge pull request #2303Riccardo Spagni2017-08-171-1/+1
|\ | | | | | | | | 5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
| * cryptonote_protocol: large block sync size before v4moneromooo-monero2017-08-171-1/+1
| |
* | protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero2017-08-151-0/+1
|/ | | | Not used yet.
* tests: fix tests buildmoneromooo-monero2017-08-101-0/+2
| | | | | | | Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
* cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-072-0/+14
| | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
* Move txpool to the databasemoneromooo-monero2017-05-251-1/+2
| | | | | | | Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-213-3/+3
|
* blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero2017-02-131-1/+1
| | | | This speeds up operations such as serving blocks to syncing peers
* cryptonote_protocol: misc fluffy block fixesmoneromooo-monero2017-02-121-0/+2
| | | | | | | | | | | | | | | - fix wrong block being used when a new block is received between a node elaying a fluffy block and sending a new fluffy block with txes a peer did not have - misc a neverending ping pong requesting the same missing txids when a new block is received in the meantime, causing the top block to not be the one we need - send the original fluffy block message block height when sending a new fluffy block, not the current top height, which might have been updated since - avoid sending back the whole block blob when asking for txes, send only the hash instead - plus misc cleanup and additional debugging logs
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-081-2/+2
|
* fixups in logging init calls, and add missing net context in a logmoneromooo-monero2017-01-161-1/+1
|
* Change logging to easylogging++moneromooo-monero2017-01-162-20/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* fix do_not_relay not preventing relaying on a timermoneromooo-monero2017-01-142-2/+2
| | | | Also print its value when printing pool
* tests: fix tests builds after fluffy blocks mergemoneromooo-monero2016-11-111-0/+3
|
* core: notify the txpool when transactions are relayedmoneromooo-monero2016-10-231-0/+1
|
* tests: fix build after addition of cryptonote_core::get_block_sync_sizemoneromooo-monero2016-10-011-0/+1
|