aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/ban.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-10-13p2p+rpc: don't skip p2p or rpc port bind failure by defaultxiphon1-264/+0
2019-09-27monerod can now sync from pruned blocksmoneromooo-monero1-4/+6
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
2019-09-16p2p: fix bans taking port into accountmoneromooo-monero1-2/+20
2019-07-16allow blocking whole subnetsmoneromooo-monero1-3/+35
2019-04-16unit_tests: undo is_blocked implementation factoringmoneromooo-monero1-1/+12
The is_host_blocked method is not on master yet
2019-04-11p2p: fix integer overflow in host bansmoneromooo-monero1-12/+17
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-03-05cryptonote: avoid double parsing blocks when syncingmoneromooo-monero1-2/+2
2019-01-22Pruningmoneromooo-monero1-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.
2018-11-06protocol: option to pad transaction relay to the next kBmoneromooo-monero1-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.
2018-06-26replace std::list with std::vector on some hot pathsmoneromooo-monero1-5/+5
also use reserve where appropriate
2018-04-22Only log an error if fork version is higher AND is not known.Thaer Khawaja1-0/+1
2018-03-21core: add get_earliest_ideal_height_for_version()stoffu1-0/+1
2018-03-05Stagenetstoffu1-1/+1
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-12-16cryptonote_core does not depend on p2p anymoremoneromooo-monero1-0/+5
As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
2017-10-05Upgrades to epee::net_utils::network_addressLee Clagett1-1/+1
- internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
2017-09-25move checkpoints in a separate librarymoneromooo-monero1-1/+1
2017-09-25get_blockchain_top now returns voidmoneromooo-monero1-1/+1
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.
2017-09-18precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero1-0/+1
This shaves a lot of space off binaries
2017-09-03Add a --fluffy-blocks option to relay blocks as fluffy blocksmoneromooo-monero1-0/+1
Defaults to off, but fluffy blocks are forced enabled on testnet
2017-08-22Cleanup test impact of adding safesyncmode() methodHoward Chu1-0/+1
2017-08-17cryptonote_protocol: large block sync size before v4moneromooo-monero1-1/+1
2017-08-15protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero1-0/+1
Not used yet.
2017-08-10tests: fix tests buildmoneromooo-monero1-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.
2017-08-07core: thread most of handle_incoming_txmoneromooo-monero1-0/+1
2017-06-19unit_tests: fix build failures after network_address changesmoneromooo-monero1-52/+55
2017-05-25Move txpool to the databasemoneromooo-monero1-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.
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-13blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero1-1/+1
This speeds up operations such as serving blocks to syncing peers
2017-02-12cryptonote_protocol: misc fluffy block fixesmoneromooo-monero1-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
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero1-1/+1
Also print its value when printing pool
2016-11-11tests: fix tests builds after fluffy blocks mergemoneromooo-monero1-0/+3
2016-10-23core: notify the txpool when transactions are relayedmoneromooo-monero1-0/+1
2016-10-01tests: fix build after addition of cryptonote_core::get_block_sync_sizemoneromooo-monero1-0/+1
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero1-1/+1
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero1-1/+1
Useful for debugging users' logs
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-12-24unit_tests: new test for IP blockingmoneromooo-monero1-0/+168