aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
Commit message (Collapse)AuthorAgeFilesLines
* add RPC to get a histogram of outputs of a given amountmoneromooo-monero2018-03-163-4/+47
|
* Merge pull request #3307Riccardo Spagni2018-03-051-1/+2
|\ | | | | | | 223d7d0c db_lmdb: fix free space reporting (moneromooo-monero)
| * db_lmdb: fix free space reportingmoneromooo-monero2018-02-231-1/+2
| | | | | | | | reported by Brad Richards
* | Correct spelling mistakes.Edward Betts2018-03-051-1/+1
|/
* db_lmdb: fix return code mixup in for_all_*moneromooo-monero2018-02-191-12/+12
|
* Merge pull request #3226Riccardo Spagni2018-02-163-5/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4646379 keccak: fix mdlen bounds sanity checking (moneromooo-monero) 2e3e90ac pass large parameters by const ref, not value (moneromooo-monero) 61defd89 blockchain: sanity check number of precomputed hash of hash blocks (moneromooo-monero) 9af6b2d1 ringct: fix infinite loop in unused h2b function (moneromooo-monero) 8cea8d0c simplewallet: double check a new multisig wallet is multisig (moneromooo-monero) 9b98a6ac threadpool: catch exceptions in dtor, to avoid terminate (moneromooo-monero) 24803ed9 blockchain_export: fix buffer overflow in exporter (moneromooo-monero) f3f7da62 perf_timer: rewrite to make it clear there is no division by zero (moneromooo-monero) c6ea3df0 performance_tests: remove add_arg call stray extra param (moneromooo-monero) fa6b4566 fuzz_tests: fix an uninitialized var in setup (moneromooo-monero) 03887f11 keccak: fix sanity check bounds test (moneromooo-monero) ad11db91 blockchain_db: initialize m_open in base class ctor (moneromooo-monero) bece67f9 miner: restore std::cout precision after modification (moneromooo-monero) 1aabd14c db_lmdb: check hard fork info drop succeeded (moneromooo-monero)
| * blockchain_db: initialize m_open in base class ctormoneromooo-monero2018-02-023-3/+7
| | | | | | | | | | | | It's cleaner this way, since it's a base class field Coverity 136568
| * db_lmdb: check hard fork info drop succeededmoneromooo-monero2018-02-021-2/+6
| | | | | | | | Coverity 136364
* | Merge pull request #3231Riccardo Spagni2018-02-162-2/+10
|\ \ | |/ |/| | | 84a8b2da Don't create readtxn until after txn_safe gate check (Howard Chu)
| * Don't create readtxn until after txn_safe gate checkHoward Chu2018-01-312-2/+10
| |
* | Update 2018 copyrightxmr-eric2018-01-268-8/+8
|/
* Merge pull request #2971Riccardo Spagni2018-01-103-6/+9
|\ | | | | | | ae860230 Fix exceptions not finding txpool txes when relaying (moneromooo-monero)
| * Fix exceptions not finding txpool txes when relayingmoneromooo-monero2017-12-203-6/+9
| |
* | Additional fix for core_testsHoward Chu2017-12-281-10/+15
| | | | | | | | | | | | Reset thread-local info if it doesn't match the current env. Only happens when a process opens/closes env multiple times in the same process, doesn't affect monerod.
* | Fix stale readcursor flagsHoward Chu2017-12-281-22/+15
| | | | | | | | | | Reset thread-specific flags when a write txn is started. Also remove some redundant start-readtxn code.
* | catch const exceptionsmoneromooo-monero2017-12-181-1/+1
| |
* | fix a few leaks by throwing objects, not newed pointers to objectsmoneromooo-monero2017-12-181-5/+5
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-165-3/+5
|
* blockchain_db: sanity check on tx/hash vector sizesflozilla2017-11-151-0/+4
| | | | | It could trip on a corrupt/crafted file if the user has disabled input verification.
* Merge pull request #2629Riccardo Spagni2017-11-142-1/+2
|\ | | | | | | 383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
| * remove "using namespace std" from headersmoneromooo-monero2017-11-142-1/+2
| | | | | | | | | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* | Merge pull request #2742Riccardo Spagni2017-11-141-0/+6
|\ \ | |/ |/| | | | | 7c7d3672 Increase LMDB maxreaders if large number of threads in use (Howard Chu) 6738753b Use max_concurrency as-is (Howard Chu)
| * Increase LMDB maxreaders if large number of threads in useHoward Chu2017-11-021-0/+6
| |
* | Merge pull request #2615Riccardo Spagni2017-11-143-11/+42
|\ \ | | | | | | | | | 10013e94 Protect node privacy by proper filtering in restricted-mode RPC answers (binaryFate)
| * | Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate2017-11-083-11/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows to filter out sensitive information for queries that rely on the pool state, when running in restricted mode. This filtering is only applied to data sent back to RPC queries. Results of inline commands typed locally in the daemon are not affected. In practice, when running with `--restricted-rpc`: * get_transaction_pool will list relayed transactions with the fields "last relayed time" and "received time" set to zero. * get_transaction_pool will not list transaction that have do_not_relay set to true, and will not list key images that are used only for such transactions * get_transaction_pool_hashes.bin will not list such transaction * get_transaction_pool_stats will not count such transactions in any of the aggregated values that are computed The implementation does not make filtering the default, so developers should be mindful of this if they add new RPC functionality. Fixes #2590.
* | | track double spending in the txpoolmoneromooo-monero2017-11-061-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Transactions in the txpool are marked when another transaction is seen double spending one or more of its inputs. This is then exposed wherever appropriate. Note that being marked with this "double spend seen" flag does NOT mean this transaction IS a double spend and will never be mined: it just means that the network has seen at least another transaction spending at least one of the same inputs, so care should be taken to wait for a few confirmations before acting upon that transaction (ie, mostly of use for merchants wanting to accept unconfirmed transactions).
* / fixed an LMDB issue on OpenBSD (#2699) which leads to a crash in monerodston1th2017-10-261-0/+6
|/
* Merge pull request #2640Riccardo Spagni2017-10-151-1/+1
|\ | | | | | | | | 22b51e06 db_lmdb: include chain height when failing to find an output key (moneromooo-monero) 5db433b3 blockchain: avoid exceptions in output verification (moneromooo-monero)
| * db_lmdb: include chain height when failing to find an output keymoneromooo-monero2017-10-121-1/+1
| | | | | | | | To help debugging logs.
* | frob level 1 logs a bit for consistencymoneromooo-monero2017-10-071-7/+7
|/ | | | | Level 1 logs map to INFO, so setting log level to 1 should show these. Demote some stuff to DEBUG to avoid spam, though.
* Merge pull request #2457Riccardo Spagni2017-09-253-9/+15
|\ | | | | | | d2d8a41c Use actual batch size for resize estimates (Howard Chu)
| * Use actual batch size for resize estimatesHoward Chu2017-09-173-9/+15
| | | | | | | | | | | | | | And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height
* | db_lmdb: fix use of uninitialized key in for_blocks_rangemoneromooo-monero2017-09-191-2/+2
|/
* Merge pull request #2372Riccardo Spagni2017-09-022-9/+25
|\ | | | | | | | | | | c867357a cryptonote_protocol: error handling on cleanup_handle_incoming_blocks (moneromooo-monero) ce901fcb Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocks (moneromooo-monero) 84fa015e core: guard against exceptions in handle_incoming_{block,tx} (moneromooo-monero)
| * Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocksmoneromooo-monero2017-08-292-9/+25
| |
* | move db specific options to BlockchainDBmoneromooo-monero2017-08-292-0/+35
|/ | | | | Avoids common depending on blockchain_db, which can cause link errors.
* Merge pull request #2314Riccardo Spagni2017-08-263-0/+14
|\ | | | | | | | | c22d22e2 Cleanup test impact of adding safesyncmode() method (Howard Chu) 9a859844 Toggle SAFE syncmode on and off automatically (Howard Chu)
| * Toggle SAFE syncmode on and off automaticallyHoward Chu2017-08-203-0/+14
| | | | | | | | | | | | | | | | | | If monerod is started with default sync mode, set it to SAFE after synchronization completes. Set it back to FAST if synchronization restarts (e.g. because another peer has a longer blockchain). If monerod is started with an explicit sync mode, none of this automation takes effect.
* | More DB support cleanupHoward Chu2017-08-202-5/+34
|/ | | | | | | | Hide DB types from db_types.h - no reason to recompile dependencies when DB types change. Also remove lingering in-memory DB references, they've been obsolete since 9e82b694da120708652871b55f639d1ef306a7ec
* DB cleanupHoward Chu2017-08-193-1/+34
| | | | | Hide LMDB-specific stuff behind blockchain_db.h. Nobody besides blockchain_db.cpp should ever be including DB-specific headers any more.
* core: add --db-salvage command line flagmoneromooo-monero2017-08-121-1/+1
| | | | Use to load the database when the primary meta page is corrupted
* some include cleanupmoneromooo-monero2017-07-312-0/+2
|
* blockchain_db: add a txpool tx getter which returns existencemoneromooo-monero2017-06-113-3/+23
| | | | Avoids exception spam for the "nope, not found" case
* Don't copy blockchain for coinbase_tx_sumHoward Chu2017-06-013-7/+19
| | | | | Changed Blockchain::for_all_blocks() to for_blocks_range() Operate on blockchain in-place instead of building a copy first.
* Merge pull request #2039Riccardo Spagni2017-05-301-1/+1
|\ | | | | | | 4b932ff3 changed crypto to cncrypto so it generated libcncrypto (Gentian)
| * changed crypto to cncrypto so it generated libcncryptoGentian2017-05-231-1/+1
| | | | | | | | fix a cmakelist
* | Move txpool to the databasemoneromooo-monero2017-05-253-0/+321
|/ | | | | | | Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
* Partial fix #1876, check thread in block_txn_start()Howard Chu2017-03-191-1/+2
| | | | Don't allow use of existing batch txn if it's from the wrong thread
* fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi842017-03-101-5/+5
| | | | BlockchainDB functions virtual again to avoid missing symbols error
* Remove redundant num_txs() methodHoward Chu2017-03-032-18/+4
| | | | Cleanup of bf1348b7e2b2c72a6d40b23567afaa46b53e6cb7