summaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | fix a few leaks by throwing objects, not newed pointers to objectsmoneromooo-monero2017-12-181-1/+1
|/
* Merge pull request #2878Riccardo Spagni2017-12-161-5/+6
|\ | | | | | | | | abebe392 rpc: add offline state in info rpc (moneromooo-monero) 7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
| * core: make --offline also disable DNS lookupsmoneromooo-monero2017-11-301-5/+6
| |
* | add bulletproofs from v7 on testnetmoneromooo-monero2017-12-081-9/+26
|/
* remove "using namespace std" from headersmoneromooo-monero2017-11-141-0/+2
| | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* Merge pull request #2615Riccardo Spagni2017-11-141-4/+4
|\ | | | | | | 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-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+6
|/ | | | | | | | | | | | | | 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).
* blockchain: do not lock the blockchain lock for simple DB gettersmoneromooo-monero2017-10-301-7/+28
| | | | | | | It is safe in those cases, though might return slightly out of date information if another thread is busy modifying the blockchain, but it avoids potentially lengthy delays just to get things like the current blockchain height.
* Merge pull request #2656Riccardo Spagni2017-10-151-3/+3
|\ | | | | | | | | 3492de01 fix lightwallet and subaddresses conflict (Jaquee) 329f149e remove reference to cryptonote::null_hash (Jaquee)
| * remove reference to cryptonote::null_hashJaquee2017-10-151-3/+3
| |
* | Merge pull request #2640Riccardo Spagni2017-10-151-2/+12
|\ \ | |/ |/| | | | | 22b51e06 db_lmdb: include chain height when failing to find an output key (moneromooo-monero) 5db433b3 blockchain: avoid exceptions in output verification (moneromooo-monero)
| * blockchain: avoid exceptions in output verificationmoneromooo-monero2017-10-121-2/+12
| | | | | | | | This can happen if we get a bad tx, so let's not spam the log.
* | Merge pull request #2552Riccardo Spagni2017-10-151-9/+18
|\ \ | | | | | | | | | 69ce33f2 core: fix failure to sync when a tx is already in the pool (moneromooo-monero)
| * | core: fix failure to sync when a tx is already in the poolmoneromooo-monero2017-09-291-9/+18
| | |