aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #4164luigi11112018-08-151-15/+19
|\ \ | |/ |/| | | 8e24533 blockchain: some batch tx scanning speedup (moneromooo-monero)
| * blockchain: some batch tx scanning speedupmoneromooo-monero2018-07-211-15/+19
| |
* | Merge pull request #4108luigi11112018-07-271-0/+1
|\ \ | |/ |/| | | 8c05237 blockchain: cache next block difficulty after adding a block (moneromooo-monero)
| * blockchain: cache next block difficulty after adding a blockmoneromooo-monero2018-07-071-0/+1
| | | | | | | | | | It's not 100% certain it'll be needed, but it avoids getinfo needing the blockchain lock and potentially blocking
* | Merge pull request #4081luigi11112018-07-191-1/+2
|\ \ | | | | | | | | | d95bc44 blockchain: fix getting invalid block data on failure (moneromooo-monero)
| * | blockchain: fix getting invalid block data on failuremoneromooo-monero2018-06-291-1/+2
| |/
* | Merge pull request #4076luigi11112018-07-191-0/+2
|\ \ | | | | | | | | | aa0ea0a blockchain: set the m_verifivation_failed flag in a couple more places (moneromooo-monero)
| * | blockchain: set the m_verifivation_failed flag in a couple more placesmoneromooo-monero2018-06-281-0/+2
| |/ | | | | | | | | | | when a block being added to the main chain is invalid. This ensures the peer is banned after a number of these.
* | Merge pull request #4047luigi11112018-07-192-6/+35
|\ \ | | | | | | | | | 41b4bf9 tx_pool: cache check_tx_inputs results (moneromooo-monero)
| * | tx_pool: cache check_tx_inputs resultsmoneromooo-monero2018-06-242-6/+35
| | | | | | | | | | | | | | | | | | This is called a lot when creating a block template, and does not change until the blockchain changes. This also avoids tx parsing when cached.
* | | Merge pull request #3981luigi11112018-07-191-5/+34
|\ \ \ | | | | | | | | | | | | 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-131-5/+34
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 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 #3973luigi11112018-07-192-6/+7
|\ \ \ | | | | | | | | | | | | 50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
| * | | alt_chain_info can now give more info about a particular alt chainmoneromooo-monero2018-06-262-6/+7
| | | |
* | | | Merge pull request #3854luigi11112018-07-194-4/+87
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 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-294-4/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | blockchain: fix build after waiter::wait prototype changemoneromooo-monero2018-06-281-1/+1
| | | |
* | | | Merge pull request #3986luigi11112018-06-271-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | b628503 Remove old logic saved in comments. (jeandudey)
| * | | | Remove old logic saved in comments.Jean Pierre Dudey2018-06-111-2/+2
| | |/ / | |/| | | | | | | | | | Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
* | | | Merge pull request #3982luigi11112018-06-271-12/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 08b85a8 cryptonote_config: add get_config to refactor x = testnet ? config::testnet::X : stagenet ? config::stagenet::X : config::X (stoffu) 0cf80ba net_node: resolve host for node addresses given via command line flags (stoffu)
| * | | | cryptonote_config: add get_config to refactor x = testnet ? ↵stoffu2018-06-111-12/+1
| |/ / / | | | | | | | | | | | | config::testnet::X : stagenet ? config::stagenet::X : config::X
* | | | Merge pull request #3716luigi11112018-06-276-103/+139
|\ \ \ \ | | | | | | | | | | | | | | | a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
| * | | | threadpool: allow leaf functions to run concurrentlymoneromooo-monero2018-06-262-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Decrease the number of worker threads by one to account for the fact the calling thread acts as a worker thread now
| * | | | blockchain: simplify/speedup handle_get_objectsmoneromooo-monero2018-06-261-13/+8
| | | | |
| * | | | rpc: rework to avoid repeated calculations in get_blocks.binmoneromooo-monero2018-06-264-10/+19
| | | | |
| * | | | replace std::list with std::vector on some hot pathsmoneromooo-monero2018-06-266-76/+108
| | |_|/ | |/| | | | | | | | | | also use reserve where appropriate
* | | | Merge pull request #3975luigi11112018-06-251-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 2d5921e blockchain: avoid duplicate db query for height (moneromooo-monero)
| * | | | blockchain: avoid duplicate db query for heightmoneromooo-monero2018-06-091-1/+1
| | |/ / | |/| |
* | | | Merge pull request #3936luigi11112018-06-251-0/+2
|\ \ \ \ | |_|/ / |/| | | | | | | d81e042 tx_pool: initialize bitflags padding since it gets written to storage (moneromooo-monero)
| * | | tx_pool: initialize bitflags padding since it gets written to storagemoneromooo-monero2018-06-051-0/+2
| | |/ | |/| | | | | | | Avoids valgrind reporting uninitialized data usage
* | | Merge pull request #3919luigi11112018-06-201-1/+1
|\ \ \ | | | | | | | | | | | | ace2eda blockchain: pop forked blocks only when DB is not read-only (stoffu)
| * | | blockchain: pop forked blocks only when DB is not read-onlystoffu2018-06-041-1/+1
| |/ /
* | | Merge pull request #3904luigi11112018-06-201-6/+13
|\ \ \ | | | | | | | | | | | | 4f3a4fb blockchain: return error when requesting non existent output (moneromooo-monero)
| * | | blockchain: return error when requesting non existent outputmoneromooo-monero2018-06-011-6/+13
| |/ / | | | | | | | | | avoids RPC thread dying, causing the wallet to timeout
* | | Merge pull request #3903luigi11112018-06-202-12/+35
|\ \ \ | | | | | | | | | | | | 2b0c632 tx_pool: hold off parsing a tx blob till we actually need it (moneromooo-monero)
| * | | tx_pool: hold off parsing a tx blob till we actually need itmoneromooo-monero2018-06-022-12/+35
| |/ /
* | | Merge pull request #3828luigi11112018-06-191-0/+1
|\ \ \ | | | | | | | | | | | | 16e209e core: lock incoming tx lock when checking the txpool and chain (moneromooo-monero)
| * | | core: lock incoming tx lock when checking the txpool and chainmoneromooo-monero2018-05-181-0/+1
| | | | | | | | | | | | | | | | | | | | This gets rid of an innocuous race trying to add the same tx twice to the txpool
* | | | Merge pull request #3691luigi11112018-06-172-6/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | db55263 threadpool: allow constructing an object, and misc tweaks (moneromooo-monero) ce173cb core: remove threadpool dependency from header (moneromooo-monero) 3147468 unit_tests: add threadpool unit test (moneromooo-monero)
| * | | | core: remove threadpool dependency from headermoneromooo-monero2018-05-202-6/+3
| | | | |
* | | | | Merge pull request #3732luigi11112018-06-161-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | fa0839f Ensure m_timestamps has the correct number for computing difficulty. (thaerkh)
| * | | | | Ensure m_timestamps has the correct number for computing difficulty.Thaer Khawaja2018-04-291-1/+1
| |/ / / /
* | | | | Merge pull request #3726luigi11112018-06-161-8/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | b5cb1bc blockchain: avoid exception if asked for a block we do not have (moneromooo-monero)
| * | | | | blockchain: avoid exception if asked for a block we do not havemoneromooo-monero2018-05-091-8/+11
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | This can happen if a peer tries to obtain the next span from other peers if that span is needed for not downloaded yet. Also if the peer maliciously requests a non existent block hash.
* | | | | Merge pull request #3687luigi11112018-06-121-3/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 6b13976 blockchain: log in DEBUG when a block is found, and where (moneromooo-monero)
| * | | | blockchain: log in DEBUG when a block is found, and wheremoneromooo-monero2018-04-231-3/+3
| | | | | | | | | | | | | | | | | | | | Eases up debugging
* | | | | Merge pull request #3908luigi11112018-06-081-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 827ca3f bump version for 0.12.2 point release (fluffypony) 95ccf50 update checkpoints.dat for point release (fluffypony)
| * | | | | update checkpoints.dat for point releaseRiccardo Spagni2018-06-021-1/+1
| | |_|_|/ | |/| | |
* | | | | Merge pull request #3450luigi11112018-06-083-0/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 3b941be core: add get_earliest_ideal_height_for_version() (stoffu)
| * | | | | core: add get_earliest_ideal_height_for_version()stoffu2018-03-213-0/+19
| | | | | |