aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | blockchain: demote a hash-of-hashes validation warning to debugmoneromooo-monero2018-06-021-1/+1
|/ / / | | | | | | | | | | | | This data comes from untrusted peers, and validation failures are therefore normal.
* | | Merge pull request #3525luigi11112018-05-301-0/+1
|\ \ \ | | | | | | | | | | | | 66a659b blockchain: add scope guard to waiter for threaded txv1 verification (stoffu)
| * | | blockchain: add scope guard to waiter for threaded txv1 verificationstoffu2018-03-301-0/+1
| | | |
* | | | Merge pull request #3731luigi11112018-05-301-4/+10
|\ \ \ \ | | | | | | | | | | | | | | | a66f152 Use median timestamp if current time renders a block invalid. (thaerkh)
| * | | | Use median timestamp if current time renders a block invalid.Thaer Khawaja2018-05-131-4/+10
| | |_|/ | |/| |
* | | | Merge pull request #3251luigi11112018-05-291-6/+9
|\ \ \ \ | | | | | | | | | | | | | | | b9389e5 db_lmdb: save pruned and prunable tx data separately (moneromooo-monero)
| * | | | db_lmdb: save pruned and prunable tx data separatelymoneromooo-monero2018-05-231-6/+9
| | | | | | | | | | | | | | | | | | | | This bumps DB version to 2, migration code will run for v1 DBs
* | | | | Merge pull request #3420luigi11112018-05-291-3/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | a6a54fa blockchain: cache difficulty for next block (moneromooo-monero)
| * | | | | blockchain: cache difficulty for next blockmoneromooo-monero2018-03-191-3/+18
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Takes about 10 ms, which takes pretty much all of the get_info RPC, which is called pretty often from wallets. Also add a new lock so we don't need to lock the blockchain lock, which will avoid blocking for a long time when calling the getinfo RPC while syncing. Users of get_difficulty_for_next_block who need the lock will have locked it already.
* | | | | update checkpointsRiccardo Spagni2018-05-231-1/+1
| |/ / / |/| | |
* | | | Merge pull request #3787Riccardo Spagni2018-05-211-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | ce63ab09 blockchain: invalidate misc caches when popping blocks (moneromooo-monero)
| * | | | blockchain: invalidate misc caches when popping blocksmoneromooo-monero2018-05-091-0/+6
| | |/ / | |/| | | | | | | | | | Might be a bit heavy handed, but conservative.
* | | | speed up get_output_distribution (and precalc common case)moneromooo-monero2018-05-211-17/+2
| | | |
* | | | blockchain: pop top if block version disagrees with the ideal fork versionstoffu2018-05-061-0/+47
|/ / /
* | / speedup get_output_histogram for all amounts when min_count > 0moneromooo-monero2018-04-231-2/+2
| |/ |/| | | | | | | | | 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.
* | update block hashes for checkpoints.datRiccardo Spagni2018-03-241-1/+1
|/
* Move v7 fork to 1546000 to give more update timemoneromooo-monero2018-03-181-2/+2
|
* Merge pull request #3418Riccardo Spagni2018-03-171-1/+2
|\ | | | | | | 20a00266 blockchain: forbid bulletproof types before v8 (moneromooo-monero)
| * blockchain: forbid bulletproof types before v8moneromooo-monero2018-03-161-1/+2
| | | | | | | | | | They were already forbidden implicitely, but let's make that explicit for robustness
* | Merge pull request #3414Riccardo Spagni2018-03-161-1/+1
|\ \ | | | | | | | | | 524cbdc1 blockchain: fix log message about per-kB fee (stoffu)
| * | blockchain: fix log message about per-kB feestoffu2018-03-161-1/+1
| | |
* | | Merge pull request #3336Riccardo Spagni2018-03-161-2/+2
|\ \ \ | | | | | | | | | | | | 57c0b1ed Fix typos in various files (Dimitris Apostolou)
| * | | Fix typos in various filesDimitris Apostolou2018-03-151-2/+2
| |/ /
* | / add RPC to get a histogram of outputs of a given amountmoneromooo-monero2018-03-161-1/+45
| |/ |/|
* | Remove the `Blockchain::get_all_known_block_ids` function.Jean Pierre Dudey2018-03-141-19/+0
|/ | | | | | This function isn't used in the codebase. Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
* Merge pull request #3371Riccardo Spagni2018-03-141-0/+3
|\ | | | | | | 84decbea core: add v7 for 1539500 on mainnet (moneromooo-monero)
| * core: add v7 for 1539500 on mainnetmoneromooo-monero2018-03-071-0/+3
| |
* | Stagenet: successive forks up to v7stoffu2018-03-091-0/+8
| |
* | Bump min ring size from 5 to 7 from v7moneromooo-monero2018-03-071-1/+1
|/
* Merge pull request #3308Riccardo Spagni2018-03-051-1/+4
|\ | | | | | | 6f8779d2 blockchain: fix random sync failures (moneromooo-monero)
| * blockchain: fix random sync failuresmoneromooo-monero2018-02-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | When a block is added as part of a chunk (when syncing historical blocks), a block may end up already in the blockchain if it was added to the queue before being added to the chain (though it's not clear how that could happen, but it's an implementation detail) and thus may not be added to the chain when add_block is called. This would cause m_blocks_txs_check to not be cleared, causing it to get out of sync at next call, and thus wrongfully reject the next block.
* | Merge pull request #3277Riccardo Spagni2018-03-051-20/+39
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 0e7ad2e2 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' (stoffu) af773211 Stagenet (stoffu) cc9a0bee command_line: allow args to depend on more than one args (stoffu) 55f8d917 command_line::get_arg: remove 'required' for dependent args as they're always optional (stoffu) 450306a0 command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 (stoffu) 9f9e095a Use `genesis_tx` parameter in `generate_genesis_block`. #3261 (Jean Pierre Dudey)
| * | Stagenetstoffu2018-03-051-20/+39
| |/
* / Correct spelling mistakes.Edward Betts2018-03-051-2/+2
|/
* Merge pull request #3226Riccardo Spagni2018-02-161-1/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: sanity check number of precomputed hash of hash blocksmoneromooo-monero2018-02-021-1/+6
| | | | | | | | Coverity 142951
* | Merge pull request #3248Riccardo Spagni2018-02-161-0/+4
|\ \ | | | | | | | | | d6a0ae96 blockchain: don't try to use hash check array after it's freed (moneromooo-monero)
| * | blockchain: don't try to use hash check array after it's freedmoneromooo-monero2018-02-101-0/+4
| |/ | | | | | | | | It's freed when we've synced past its end, but we might still find an old chain somewhere
* / blockchain: move bulletproofs to v8moneromooo-monero2018-01-311-4/+5
|/ | | | | | and set v7 height to 1057027 on testnet (one block earlier) This is to easily dump current nodes since we're going to change the v7 rules with this.
* Merge pull request #3144Riccardo Spagni2018-01-271-1/+8
|\ | | | | | | 42f86624 rpc: expose recent median block size in getinfo (moneromooo-monero)
| * rpc: expose recent median block size in getinfomoneromooo-monero2018-01-171-1/+8
| |
* | Update 2018 copyrightxmr-eric2018-01-261-1/+1
| |
* | Merge pull request #3014Riccardo Spagni2018-01-251-1/+1
|\ \ | |/ |/| | | deeffaeb blockchain: remove minor floating point usage (moneromooo-monero)
| * blockchain: remove minor floating point usagemoneromooo-monero2018-01-101-1/+1
| |
* | Merge pull request #2971Riccardo Spagni2018-01-101-2/+2
|\ \ | |/ |/| | | ae860230 Fix exceptions not finding txpool txes when relaying (moneromooo-monero)
| * Fix exceptions not finding txpool txes when relayingmoneromooo-monero2017-12-201-2/+2
| |
* | cryptonote_core: remove unused functions with off by one bugsmoneromooo-monero2017-12-181-43/+0
| |
* | blockchain: don't leave dangling pointers in thismoneromooo-monero2017-12-181-0/+2
| |
* | cryptonote_core: fix db leak on errormoneromooo-monero2017-12-181-0/+1
| |
* | check accessing an element past the end of a containermoneromooo-monero2017-12-181-4/+6
| |