aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
Commit message (Collapse)AuthorAgeFilesLines
...
| * | db_lmdb: speedup the get_output_distribution common casemoneromooo-monero2018-08-191-2/+13
| | |
* | | Merge pull request #4200luigi11112018-08-222-50/+0
|\ \ \ | |/ / |/| | | | | 43f7110 blockchain_db: remove unused get_output_key variant (moneromooo-monero)
| * | blockchain_db: remove unused get_output_key variantmoneromooo-monero2018-07-302-50/+0
| |/ | | | | | | It was actually incorrect, as it would not return commitment
* | Merge pull request #4161luigi11112018-08-151-2/+2
|\ \ | |/ |/| | | be02eb9 db_lmdb: demote the 'batch already enabled' log, it's harmless (moneromooo-monero)
| * db_lmdb: demote the "batch already enabled" log, it's harmlessmoneromooo-monero2018-07-201-2/+2
| |
* | Merge pull request #4129luigi11112018-07-271-0/+3
|\ \ | |/ |/| | | ee31383 db_lmdb: don't sync a read only DB (moneromooo-monero)
| * db_lmdb: don't sync a read only DBmoneromooo-monero2018-07-111-0/+3
| | | | | | | | This would only throw
* | Merge pull request #4013luigi11112018-07-192-0/+13
|\ \ | | | | | | | | | e5592c4 rpc: add blockchain disk size to getinfo (moneromooo-monero)
| * | rpc: add blockchain disk size to getinfomoneromooo-monero2018-06-202-0/+13
| | | | | | | | | | | | | | | This should help new nodes predict how much disk space will be needed for a full sync
* | | Merge pull request #3981luigi11112018-07-192-6/+211
|\ \ \ | | | | | | | | | | | | 45e419b db: store cumulative rct output distribution in the db for speed (moneromooo-monero)
| * | | db: store cumulative rct output distribution in the db for speedmoneromooo-monero2018-07-132-6/+211
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This gets rid of the temporary precalc cache. Also make the RPC able to send data back in binary or JSON, since there can be a lot of data This bumps the LMDB database format to v3, with migration.
* | | Merge pull request #3854luigi11112018-07-192-1/+18
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 149da42 db_lmdb: enable batch transactions by default (stoffu) 34cb6b4 add --regtest and --fixed-difficulty for regression testing (vicsn) 9e1403e update get_info RPC and bump RPC version (vicsn) 207b66e first new functional tests (vicsn)
| * | add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2018-06-292-0/+17
| | | | | | | | | | | | | | | | | | | | | on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest. Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'. Queries hard fork heights info of other network types
| * | db_lmdb: enable batch transactions by defaultstoffu2018-06-141-1/+1
| | |
* | | db_ldmb: print db version when complaining about incompatibilitymoneromooo-monero2018-06-111-4/+5
| |/ |/|
* | db_lmdb: warn about slowness when running off a spinning diskmoneromooo-monero2018-06-081-0/+3
|/
* Merge pull request #3876luigi11112018-05-301-0/+1
|\ | | | | | | | | 740da1b core: fix automatic safe db sync mode switching (moneromooo-monero) e942d34 protocol: do not switch to unsafe sync mode for just a few blocks (moneromooo-monero)
| * core: fix automatic safe db sync mode switchingmoneromooo-monero2018-05-281-0/+1
| |
* | db_lmdb: save pruned and prunable tx data separatelymoneromooo-monero2018-05-232-41/+328
|/ | | | This bumps DB version to 2, migration code will run for v1 DBs
* speed up get_output_distribution (and precalc common case)moneromooo-monero2018-05-212-0/+43
|
* speedup get_output_histogram for all amounts when min_count > 0moneromooo-monero2018-04-232-5/+9
| | | | | | This skips the vast majority of "dust" output amounts with just one instance on the chain. Clocks in at 0.15% of the original time on testnet.
* add RPC to get a histogram of outputs of a given amountmoneromooo-monero2018-03-162-3/+44
|
* 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-161-4/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-021-2/+1
| | | | | | | | | | | | 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-262-2/+2
|/
* Merge pull request #2971Riccardo Spagni2018-01-102-4/+6
|\ | | | | | | ae860230 Fix exceptions not finding txpool txes when relaying (moneromooo-monero)
| * Fix exceptions not finding txpool txes when relayingmoneromooo-monero2017-12-202-4/+6
| |
* | 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
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-162-1/+2
|
* Merge pull request #2629Riccardo Spagni2017-11-141-0/+1
|\ | | | | | | 383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
| * remove "using namespace std" from headersmoneromooo-monero2017-11-141-0/+1
| | | | | | | | | | | | | | 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
| |
* | Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate2017-11-082-9/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | 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-252-8/+14
|\ | | | | | | d2d8a41c Use actual batch size for resize estimates (Howard Chu)
| * Use actual batch size for resize estimatesHoward Chu2017-09-172-8/+14
| | | | | | | | | | | | | | 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
|/