aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_blackball.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-08-17replace most boost serialization with existing monero serializationmoneromooo-monero1-2/+0
This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2019-09-24Merge pull request #5878luigi11111-16/+0
f9b3f6e Removed Berkeley DB and db switching logic (JesusRami)
2019-09-16Removed Berkeley DB and db switching logicJesus Ramirez1-16/+0
2019-08-22blockchain_blackball: use is_output_spent instead of ringdb.blackballed for ↵stoffu1-1/+11
spentness test
2019-08-22blockchain_blackball: add --historical-stat which prints historical stats of ↵stoffu1-2/+165
spent ratio
2019-04-29add a few checks where it seems appropriatemoneromooo-monero1-0/+1
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2018-12-22blockchain_blackball: make log file name consistent with executablestoffu1-1/+1
2018-11-24blockchain_blackball: spot when all outputs of an amount are spentmoneromooo-monero1-1/+95
2018-10-18Rename "blackball" for claritymoneromooo-monero1-12/+12
Apparently some people seem to think it's a censorship list...
2018-10-08blockchain_blackball: fix stray !moneromooo-monero1-1/+1
2018-10-08blockchain_blackball: fix stats double countingmoneromooo-monero1-15/+18
2018-09-29Merge pull request #4459Riccardo Spagni1-3/+5
bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
2018-09-14blockchain_blackball: s/return false;/return 0;/moneromooo-monero1-1/+1
2018-09-14blockchain_blackball: use %zu for size_tmoneromooo-monero1-2/+2
2018-09-14blockchain_blackball: use mdb_size_t where appropriatemoneromooo-monero1-1/+1
2018-09-14blockchain_blackball: error out on fgets errormoneromooo-monero1-1/+5
2018-09-10blockchain_blackball: add --force-chain-reaction-pass flagmoneromooo-monero1-1/+4
2018-09-10record blackballs as amount/offset, and add export abilitymoneromooo-monero1-42/+199
2018-09-09blockchain_blackball: more optimizationsmoneromooo-monero1-45/+86
2018-09-09blockchain_blackball: do not process duplicate blockchains partsmoneromooo-monero1-0/+76
2018-09-09blockchain_blackball: make it clear secondary passes are not incrementalmoneromooo-monero1-1/+12
yet
2018-09-09blockchain_blackball: detect spent outputs by partial ring reusemoneromooo-monero1-0/+35
2018-09-09blockchain_blackball: fix chain reaction phase in incremental modemoneromooo-monero1-41/+35
It makes it a lot slower, unfortunately
2018-09-09blockchain_blackball: avoid false positives for different amountsmoneromooo-monero1-8/+12
Identical offset based rings may not actually be identical rings since they represent different outputs
2018-09-09blockchain_blackball: set transaction looping txn to read onlymoneromooo-monero1-1/+1
2018-09-09blockchain_blackball: add statsmoneromooo-monero1-2/+94
2018-09-09blockchain_blackball: support pre-v2 databasesmoneromooo-monero1-79/+123
2018-09-09blockchain_blackball: use LMDB for the cachemoneromooo-monero1-137/+561
This uses less memory and makes it faster to load/save, though makes it slower to run (which is actually faster since it would previously start swapping anyway).
2018-09-09ringdb: allow blackballing many outputs at oncemoneromooo-monero1-4/+17
It cuts down on txn commits, and speeds up blackballing substantially
2018-08-15Merge pull request #4196luigi11111-4/+3
361513a blockchain_blackball: use a bit less memory (moneromooo-monero)
2018-08-09blockchain_blackball: use a bit less memorymoneromooo-monero1-4/+3
2018-07-30blockchain_blackball: allow resumable interrupt with ^Cmoneromooo-monero1-0/+13
2018-06-20Merge pull request #3924luigi11111-1/+1
afed978 Fixes #3645: error on freebsd lambda return values forced to std::string (rockhouse)
2018-06-04Fixes #3645: error on freebsd lambda return values forced to std::stringS1-1/+1
2018-05-30blockchain_blackball: also blackball N N-sized duplicate ringsmoneromooo-monero1-5/+48
These are unlikely to happen at random, but Wijaya et al made a paper about it, so people might try it on purpose now (and it turns out it's easy to add anyway)
2018-05-30blockchain_blackball: add incremental modemoneromooo-monero1-19/+102
2018-04-12blockchain_blackball: fix build with CLANG 5moneromooo-monero1-1/+2
It doesn't like the explicit NULL dereference (which is fine, honest)
2018-03-16ringdb: use the genesis block as a db namemoneromooo-monero1-1/+3
This will avoid careless forkers polluting the shared database even if they make their own chain. They'll then automatically start using another subdb, and any key-reusing fork of those forks will reuse their subdbs.
2018-03-16wallet: make ringdb an object with database statemoneromooo-monero1-4/+6
2018-03-16blockchain_utilities: new blockchain_blackball toolmoneromooo-monero1-0/+423
It scans for known spent outputs and stores their public keys in a database which can then be read by the wallet, which can then avoid using those as fake outs in new transactions. Usage: monero-blockchain-blackball db1 db2... This uses the shared database in ~/.shared-ringdb