aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #2347Riccardo Spagni2017-08-271-2/+7
|\ \ | | | | | | | | | | | | 5807529e blockchain: cap memory size of retrieved blocks (moneromooo-monero) c1b10381 rpc: decrease memory usage a bit in getblocks.bin (moneromooo-monero)
| * | blockchain: cap memory size of retrieved blocksmoneromooo-monero2017-08-261-2/+7
| |/ | | | | | | | | It helps keep memory usage down when a wallet refreshes through a string of large blocks
* | Merge pull request #2314Riccardo Spagni2017-08-264-2/+42
|\ \ | | | | | | | | | | | | c22d22e2 Cleanup test impact of adding safesyncmode() method (Howard Chu) 9a859844 Toggle SAFE syncmode on and off automatically (Howard Chu)
| * | Cleanup test impact of adding safesyncmode() methodHoward Chu2017-08-222-0/+12
| | |
| * | Toggle SAFE syncmode on and off automaticallyHoward Chu2017-08-203-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2313Riccardo Spagni2017-08-261-23/+7
|\| | | | | | | | | | | | | | | | | 3dd34a49 Cleanup test impact of moving blockchain_db_types() (Howard Chu) 80344740 More DB support cleanup (Howard Chu) 4c7f8ac0 DB cleanup (Howard Chu)
| * | DB cleanupHoward Chu2017-08-191-23/+7
| | | | | | | | | | | | | | | Hide LMDB-specific stuff behind blockchain_db.h. Nobody besides blockchain_db.cpp should ever be including DB-specific headers any more.
* | | rpc: add a new RPC to get current txpool backlog (sizes and fees)moneromooo-monero2017-08-264-0/+31
| |/ |/|
* | Merge pull request #2330Riccardo Spagni2017-08-251-1/+1
|\ \ | | | | | | | | | ea15e72d tx_pool: fix crash in stats (Howard Chu)
| * | tx_pool: fix crash in statsHoward Chu2017-08-231-1/+1
| |/ | | | | | | if tx receive_time == now. supersedes #2322
* / core: add mainnet v6 fork height at 1400000moneromooo-monero2017-08-181-0/+3
|/
* Merge pull request #2303Riccardo Spagni2017-08-172-3/+11
|\ | | | | | | | | 5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
| * cryptonote_protocol: large block sync size before v4moneromooo-monero2017-08-172-3/+11
| |
* | Merge pull request #2287Riccardo Spagni2017-08-174-0/+23
|\ \ | |/ |/| | | 827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
| * protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero2017-08-154-0/+23
| | | | | | | | Not used yet.
* | Merge pull request #2288Riccardo Spagni2017-08-151-0/+7
|\ \ | |/ |/| | | c6e200a8 core: add --db-salvage command line flag (moneromooo-monero)
| * core: add --db-salvage command line flagmoneromooo-monero2017-08-121-0/+7
| | | | | | | | Use to load the database when the primary meta page is corrupted
* | Merge pull request #2276Riccardo Spagni2017-08-152-0/+24
|\ \ | | | | | | | | | a1891ebe tests: fix tests build (moneromooo-monero)
| * | tests: fix tests buildmoneromooo-monero2017-08-102-0/+24
| |/ | | | | | | | | | | | | Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
* | Merge pull request #2250Riccardo Spagni2017-08-151-1/+3
|\ \ | | | | | | | | | f4f7eeba blockchain: log more info when we reject an orphan (moneromooo-monero)
| * | blockchain: log more info when we reject an orphanmoneromooo-monero2017-08-041-1/+3
| | | | | | | | | | | | We want to know what happened when a block is wrongly rejected
* | | Merge pull request #2246Riccardo Spagni2017-08-152-14/+4
|\ \ \ | | | | | | | | | | | | d732c73e blockchain: remove a few unused variables (moneromooo-monero)
| * | | blockchain: remove a few unused variablesmoneromooo-monero2017-08-032-14/+4
| |/ /
* | | Merge pull request #2237Riccardo Spagni2017-08-151-8/+8
|\ \ \ | |_|/ |/| | | | | | | | | | | 5d4ef719 core: speed up output index unique set calculation (moneromooo-monero) 19d7f568 perf_timer: allow profiling more granular than millisecond (moneromooo-monero) bda8c598 epee: add nanosecond timer and pause/restart profiling macros (moneromooo-monero)
| * | core: speed up output index unique set calculationmoneromooo-monero2017-08-011-8/+8
| |/ | | | | | | | | | | | | | | | | A sort+uniq step was done for every tx in a 200 block chunk, causing a lot of repeated scanning as the size of the offset map got larger with every added tx. We now do the step only once at the end of the loop. Doing it this way potentially uses more memory, but testing shows that it's currently only about 2% more.
* | protocol: add checks for top block hard fork versionmoneromooo-monero2017-08-091-0/+9
| | | | | | | | | | | | | | We won't even talk to a peer which claims a wrong version for its top block. This will avoid syncing to known bad peers in the first place. Also add IP fails when failing to verify a block.
* | Merge pull request #2231Riccardo Spagni2017-08-072-7/+7
|\ \ | | | | | | | | | 61770ec2 change mixin to ring size in user visible places (moneromooo-monero)
| * | change mixin to ring size in user visible placesmoneromooo-monero2017-08-072-7/+7
| | |
* | | Merge pull request #2262Riccardo Spagni2017-08-071-1/+1
|\ \ \ | |/ / |/| | | | | 7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
| * | core: fix invalid memory access creating txmoneromooo-monero2017-08-071-1/+1
| | |
* | | Merge pull request #2225Riccardo Spagni2017-08-073-1/+17
|\ \ \ | | | | | | | | | | | | 5d91b26c blockchain: skip checking tx semantics in embedded block hash range (moneromooo-monero)
| * | | blockchain: skip checking tx semantics in embedded block hash rangemoneromooo-monero2017-07-303-1/+17
| | |/ | |/| | | | | | | | | | If the txes are bad, this'll be picked up by the block hash mismatch since the tx merkle root is part of the block hash.
* | | core: new API to disable DNS checkpoint lookupsmoneromooo-monero2017-08-072-1/+10
| |/ |/|
* | Merge pull request #2149Riccardo Spagni2017-08-072-25/+104
|\ \ | | | | | | | | | | | | | | | | | | | | | 158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
| * | core: thread most of handle_incoming_txmoneromooo-monero2017-08-072-25/+104
| |/
* | Merge pull request #2243Riccardo Spagni2017-08-071-0/+2
|\ \ | | | | | | | | | 4d873046 blockchain: add testnet v6 fork height at 971400 (moneromooo-monero)
| * | blockchain: add testnet v6 fork height at 971400moneromooo-monero2017-08-071-0/+2
| |/
* | Merge pull request #2234Riccardo Spagni2017-08-071-0/+1
|\ \ | | | | | | | | | 214fd81e some include cleanup (moneromooo-monero)
| * | some include cleanupmoneromooo-monero2017-07-311-0/+1
| |/
* | Merge pull request #2230Riccardo Spagni2017-08-071-0/+2
|\ \ | | | | | | | | | 5dd722be core: add a message when loading checkpoints at init time (moneromooo-monero)
| * | core: add a message when loading checkpoints at init timemoneromooo-monero2017-07-311-0/+2
| |/ | | | | | | | | This uses DNS, which can take a while, so it's useful to know this is the culprit when loading pauses
* | Merge pull request #2226Riccardo Spagni2017-08-071-1/+0
|\ \ | | | | | | | | | 14ec6ed8 tx_pool: remove obsolete unused m_config_folder field (moneromooo-monero)
| * | tx_pool: remove obsolete unused m_config_folder fieldmoneromooo-monero2017-07-301-1/+0
| |/
* | Merge pull request #2222Riccardo Spagni2017-08-071-1/+2
|\ \ | | | | | | | | | 878205f1 core: fix lock ordering bug at init time (moneromooo-monero)
| * | core: fix lock ordering bug at init timemoneromooo-monero2017-07-291-1/+2
| |/
* | Merge pull request #2216Riccardo Spagni2017-08-072-7/+7
|\ \ | | | | | | | | | | | | | | | d8becf2e blockchain: fix cryptonight buffer leak on exit (moneromooo-monero) 91aa90fc blockchain: ensure all blocks get their longhash precalculated (moneromooo-monero) ff4bcaed blockchain: pass correct height to get_block_longhash (moneromooo-monero)
| * | blockchain: fix cryptonight buffer leak on exitmoneromooo-monero2017-07-281-1/+1
| | |
| * | blockchain: ensure all blocks get their longhash precalculatedmoneromooo-monero2017-07-272-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the number of blocks to check was not a multiple of the number of preparation threads, the last few blocks would not be included in the threaded long hash calculation. Those would still get calculated when the block gets added to the chain, however, so this was only a tiny performance hit, rather than a security bug.
| * | blockchain: pass correct height to get_block_longhashmoneromooo-monero2017-07-271-4/+2
| |/
* | Merge pull request #2206Riccardo Spagni2017-08-071-1/+1
|\ \ | | | | | | | | | 340feede core: randomly shuffle outputs (moneromooo-monero)