summaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1924Riccardo Spagni2017-03-251-3/+3
|\ | | | | | | 6d315459 core: avoid possible reordering bugs wth tx/bloch hash cache (moneromooo-monero)
| * core: avoid possible reordering bugs wth tx/bloch hash cachemoneromooo-monero2017-03-251-3/+3
| |
* | Fixed typo in v5 hard fork finalized dateDerek Zhang2017-03-241-1/+1
|/
* blockchain: offset v5 addition date on testnetmoneromooo-monero2017-03-241-1/+1
| | | | | to silence the update warning, since v5 was done very early on testnet
* Merge pull request #1911Riccardo Spagni2017-03-235-4/+46
|\ | | | | | | | | | | | | 91d41090 tx_pool: ensure txes loaded from poolstate.bin have their txid cached (moneromooo-monero) aaeb164c tx_pool: remove transactions if they're in the blockchain (moneromooo-monero) 558cfc31 core, wallet: faster tx pool scanning (moneromooo-monero) f065234b core: cache tx and block hashes in the respective classes (moneromooo-monero)
| * tx_pool: ensure txes loaded from poolstate.bin have their txid cachedmoneromooo-monero2017-03-231-5/+6
| | | | | | | | | | | | | | | | The txid is not saved, and we want to make sure the transactions have their txid cached while in the pool, since get_transactions copies the transaction object, so any txid calculation on those copies would not benefit any later caller, since the original tx would be left without a cached txid.
| * tx_pool: remove transactions if they're in the blockchainmoneromooo-monero2017-03-231-1/+9
| | | | | | | | | | | | When starting up, if the pool state was not saved, the pool might contain transactions which made it into the blockchain, so these need removing
| * core, wallet: faster tx pool scanningmoneromooo-monero2017-03-234-1/+28
| | | | | | | | Includes a new RPC to get tx pool hashes fast.
| * core: cache tx and block hashes in the respective classesmoneromooo-monero2017-03-231-0/+6
| | | | | | | | An idea from smooth
* | tx_pool: silence use of uninitialized warningmoneromooo-monero2017-03-211-1/+1
|/ | | | The result is not actually used when uninitialized
* blockchain: lower the relay fee by 2%moneromooo-monero2017-03-201-1/+1
| | | | | This ensures we accept txes with a fee that's slightly too small, to accomodate blockchain median jitter
* tx_pool: use new filling algorithm from v5 onlymoneromooo-monero2017-03-201-20/+30
|
* Merge pull request #1896Riccardo Spagni2017-03-191-0/+17
|\ | | | | | | a6f1d8fc core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined block (moneromooo-monero)
| * core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined blockmoneromooo-monero2017-03-191-0/+17
| | | | | | | | | | This ensures that a batch can't also be started/stopped out of sync by another thread and us getting in the middle
* | Removed boost/asio.hpp include from epee/string_tools.hLee Clagett2017-03-181-0/+1
|/
* Merge pull request #1869Riccardo Spagni2017-03-153-29/+28
|\ | | | | | | 3396a9f2 Add intervening v5 fork for increased min block size (moneromooo-monero)
| * Add intervening v5 fork for increased min block sizemoneromooo-monero2017-03-153-29/+28
| | | | | | | | | | | | | | | | | | | | Minimum mixin 4 and enforced ringct is moved from v5 to v6. v5 is now used for an increased minimum block size (from 60000 to 300000) to cater for larger typical/minimum transaction size. The fee algorithm is also changed to decrease the base per kB fee, and add a cheap tier for those transactions which we do not care if they get delayed (or even included in a block).
* | core: don't try to re-relay an empty set of pool transactionsmoneromooo-monero2017-03-121-1/+1
|/
* fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi842017-03-104-685/+1
| | | | BlockchainDB functions virtual again to avoid missing symbols error
* Merge pull request #1841Riccardo Spagni2017-03-062-18/+56
|\ | | | | | | | | | | | | | | | | | | | | b553c282 rpc: fix BUILD_TAG mispelling (BUILDTAG) (moneromooo-monero) 02097c87 core: print the "new update found" message in cyan, for visibility (moneromooo-monero) 749ebace download: check available disk space before downloading (moneromooo-monero) f36c5f1e download: give download threads distinct names (moneromooo-monero) f6211322 core: make update download cancellable (moneromooo-monero) 63f0e074 download: async API (moneromooo-monero) 9bf017ed http_client: allow cancelling a download (moneromooo-monero) 0d90123c http_client: allow derived class to get headers at start (moneromooo-monero)
| * core: print the "new update found" message in cyan, for visibilitymoneromooo-monero2017-03-051-2/+2
| |
| * core: make update download cancellablemoneromooo-monero2017-03-052-17/+55
| |
* | blockchain: don't try to load an empty block hash setmoneromooo-monero2017-03-051-1/+1
|/ | | | | | | If the blocks aren't being linked against a binary (such as one of the blockchain utilities), the symbol will not be NULL, but the size will be 0. This avoids a apurious warning about the data hash.
* Merge pull request #1837Riccardo Spagni2017-03-041-1/+19
|\ | | | | | | 31533493 core: quantize per kB fee to 8 decimals (moneromooo-monero)
| * core: quantize per kB fee to 8 decimalsmoneromooo-monero2017-03-031-1/+19
| |
* | tx_pool: log separately "not ready" and "double spend" casesmoneromooo-monero2017-03-031-2/+8
|/
* Fix #1824 don't end batch that we didn't startHoward Chu2017-03-031-2/+3
|
* core: move hardfork back to cryptonote_coremoneromooo-monero2017-02-254-1/+684
| | | | | should fix a cross dependency betewen cryptonote_basic and blockchain_db
* Merge pull request #1785Riccardo Spagni2017-02-241-1/+28
|\ | | | | | | 583a7b5c core: protect precomputed block hashes with SHA256 (moneromooo-monero)
| * core: protect precomputed block hashes with SHA256moneromooo-monero2017-02-231-1/+28
| |
* | core: bound the amount of entries in bad tx semantics cachemoneromooo-monero2017-02-232-6/+16
| | | | | | | | | | | | This is to prevent unbounded memory use. Since I don't think there is a container that has quick insert, quick lookup, and automatic FIFO, I use two and swap every N, clearing the oldest one.
* | core: remove a couple unused/obsolete bitsmoneromooo-monero2017-02-231-3/+0
|/
* updates: remove testnet casemoneromooo-monero2017-02-221-1/+1
| | | | It need not be any different
* updates: we now have a user URL, and an automatic onemoneromooo-monero2017-02-221-1/+2
| | | | So the user can use https, while the automatic does not have to
* updates: s/monerod/monero/ for the main downloadmoneromooo-monero2017-02-221-2/+2
| | | | Also print download success message as global log
* Merge pull request #1766Riccardo Spagni2017-02-2210-10/+10
|\ | | | | | | | | | | | | 72deb484 updated fallback nodes (Riccardo Spagni) 33329f5b update version to 0.10.2 (Riccardo Spagni) 04a50a7e update checkpoints.dat (Riccardo Spagni) c3599fa7 update copyright year, fix occasional lack of newline at line end (Riccardo Spagni)
| * update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-2110-10/+10
| |
* | core: do not download an update we already downloadedmoneromooo-monero2017-02-211-14/+23
|/
* Fix core_tests breaking on startupmoneromooo-monero2017-02-211-0/+2
| | | | | | | | | | You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
* core: add p2p bind port options from net_nodemoneromooo-monero2017-02-211-0/+4
| | | | | | | | They're now used by core to determine the data directory to use for the txpool directory. This fixes an assert in the core tests, which don't use the RPC server, which normally initializes the P2P code.
* Merge pull request #1727Riccardo Spagni2017-02-214-41/+119
|\ | | | | | | 0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
| * blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero2017-02-134-41/+119
| | | | | | | | This speeds up operations such as serving blocks to syncing peers
* | Merge pull request #1724Riccardo Spagni2017-02-211-1/+1
|\ \ | | | | | | | | | cca95c1c blockchain_db: do not throw on expected partial results getting keys (moneromooo-monero)
| * | blockchain_db: do not throw on expected partial results getting keysmoneromooo-monero2017-02-131-1/+1
| |/ | | | | | | | | | | | | | | | | When scanning for outputs used in a set of incoming blocks, we expect that some of the inputs in their transactions will not be found in the blockchain, as they could be in previous blocks in that set. Those outputs will be scanned there at a later point. In this case, we add a flag to control wehther an output not being found is expected or not.
* | Merge pull request #1731Riccardo Spagni2017-02-211-1/+1
|\ \ | | | | | | | | | | | | | | | a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
| * | core: add a missing newline on a string to be loggedmoneromooo-monero2017-02-141-1/+1
| |/
* | core: updates can now be downloaded (and SHA256 hash checked)moneromooo-monero2017-02-201-0/+30
| |
* | core: test key images against validity domainmoneromooo-monero2017-02-202-0/+28
| |
* | Optionally query moneropulse DNS records to check for updatesmoneromooo-monero2017-02-202-0/+64
| | | | | | | | | | It just checks and prints a message if there is a new version for now.
* | core: display any fork warning at startup toomoneromooo-monero2017-02-201-1/+1
| | | | | | | | This is a good time for the operator to be around and see it