aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix build on FreeBSD/!x86pkubaj2019-10-131-0/+4
| | |/ | |/| | | | Checking battery status uses x86-only headers and functions. Remove this functionality to get it to build on other architectures.
* | | Merge pull request #5933luigi11112019-10-141-0/+1
|\ \ \ | |/ / |/| | | | | 3455efa ban peers sending bad pow outright (moneromooo-monero)
| * | ban peers sending bad pow outrightmoneromooo-monero2019-09-251-0/+1
| | | | | | | | | | | | PoW is expensive to verify, so be strict
* | | Merge pull request #5915luigi11112019-10-083-17/+92
|\ \ \ | |_|/ |/| | | | | 8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
| * | monerod can now sync from pruned blocksmoneromooo-monero2019-09-273-17/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
* | | RandomX integrationHoward Chu2019-09-254-30/+14
| |/ |/| | | | | Support RandomX PoW algorithm
* | Merge pull request #5877luigi11112019-09-241-2/+1
|\ \ | | | | | | | | | | | | | | | 2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
| * | Make null hash constants constexprLev Sizov2019-09-051-1/+1
| | | | | | | | | | | | Simplify m_template initialization in miner
| * | Removed unused boost/value_init headerLev Sizov2019-09-021-1/+0
| | |
| * | Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez2019-09-021-1/+1
| | |
* | | core: move hardforks into its own libmoneromooo-monero2019-09-192-11/+4
| |/ |/| | | | | So it can be used by others without encumbrance
* | difficulty: fix check_hash on big endianmoneromooo-monero2019-09-041-1/+0
|/
* Added support for "noise" over I1P/Tor to mask Tx transmission.Lee Clagett2019-07-171-0/+2
|
* Merge pull request #5720luigi11112019-08-191-1/+1
|\ | | | | | | bcd2da7 miner: fix --bg-mining-enable description (moneromooo-monero)
| * miner: fix --bg-mining-enable descriptionmoneromooo-monero2019-07-021-1/+1
| |
* | Merge pull request #5487luigi11112019-08-141-0/+1
|\ \ | |/ |/| | | df83ed7 consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
| * consensus: from v12, enforce >= 2 outputsmoneromooo-monero2019-04-231-0/+1
| |
* | serialization: check stream good flag at the endmoneromooo-monero2019-06-141-1/+1
| | | | | | | | just in case
* | cryptonote: throw on tx hash calculation errormoneromooo-monero2019-06-141-3/+3
| |
* | miner: fix double free of thread attributesston1th2019-06-092-10/+6
| | | | | | | | issue: #5568
* | fix wide difficulty conversion with some versions of boostmoneromooo-monero2019-05-011-2/+2
| |
* | hardfork: fix off by one updating fork index after poppingmoneromooo-monero2019-04-201-3/+2
|/
* Merge pull request #5444Riccardo Spagni2019-04-161-0/+1
|\ | | | | | | 6643b047 Increment m_threads_active when mining thread starts (Doyle)
| * Increment m_threads_active when mining thread startsDoyle2019-04-151-0/+1
| |
* | Merge pull request #5443Riccardo Spagni2019-04-161-20/+2
|\ \ | | | | | | | | | 07dd5536 hardfork: remove "no hf version db" recreation check (moneromooo-monero)
| * | hardfork: remove "no hf version db" recreation checkmoneromooo-monero2019-04-141-20/+2
| |/ | | | | | | | | This is now obsolete, and this removes the warning on startup on a new db that confuses some people
* | Merge pull request #5400Riccardo Spagni2019-04-161-6/+2
|\ \ | | | | | | | | | 5e673c03 blockchain_db: fix db txn ending too early (moneromooo-monero)
| * | blockchain_db: fix db txn ending too earlymoneromooo-monero2019-04-141-6/+2
| |/ | | | | | | | | | | | | | | | | | | The db txn in add_block ending caused the entire overarching batch txn to stop. Also add a new guard class so a db txn can be stopped in the face of exceptions. Also use a read only db txn in init when the db itself is read only, and do not save the max tx size in that case.
* | Merge pull request #5402Riccardo Spagni2019-04-152-0/+18
|\ \ | |/ |/| | | cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
| * rpc: make wide_difficulty hexadecimalmoneromooo-monero2019-04-052-0/+18
| | | | | | | | This should be friendlier for clients which don't have bignum support
* | functional_tests: add more blockchain related testsmoneromooo-monero2019-04-113-2/+14
| | | | | | | | | | Related to emission, reorgs, getting tx data back, output distribution and histogram
* | Merge pull request #5381Riccardo Spagni2019-04-112-6/+10
|\ \ | | | | | | | | | def40161 miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
| * | miner: fix race when stopping mining with start mining enabledmoneromooo-monero2019-04-012-6/+10
| |/
* | Merge pull request #5380Riccardo Spagni2019-04-111-2/+0
|\ \ | | | | | | | | | | | | | | | 113e4877 blockchain_stats: fix sign in formatting function (moneromooo-monero) adaea3ea various: remove unused variables (moneromooo-monero) 631ef00e blockchain: some debug info when adding txes-from-block fails (moneromooo-monero)
| * | various: remove unused variablesmoneromooo-monero2019-04-011-2/+0
| |/
* | Merge pull request #5374Riccardo Spagni2019-04-111-5/+11
|\ \ | | | | | | | | | a2561653 wallet: new option to start background mining (moneromooo-monero)
| * | wallet: new option to start background miningmoneromooo-monero2019-04-041-5/+11
| |/ | | | | | | | | | | The setup-background-mining option can be used to select background mining when a wallet loads. The user will be asked the first time the wallet is created.
* | Merge pull request #5123Riccardo Spagni2019-04-113-6/+2
|\ \ | | | | | | | | | 089c7637 cryptonote: rework block blob size sanity check (moneromooo-monero)
| * | cryptonote: rework block blob size sanity checkmoneromooo-monero2019-04-053-6/+2
| |/ | | | | | | | | Use the actual block weight limit, assuming that weight is always greater or equal to size
* | Merge pull request #5346Riccardo Spagni2019-04-062-8/+51
|\ \ | |/ |/| | | | | | | | | | | | | c84ea299 cryptonote_basic: some more minor speedups (moneromooo-monero) e40eb2ad cryptonote_basic: speedup calculate_block_hash (moneromooo-monero) 547a9708 cryptonote: block parsing + hash calculation speedup (moneromooo-monero) 11604b6d blockchain: avoid unneeded block copy (moneromooo-monero) 8461df04 save some database calls when getting top block hash and height (moneromooo-monero) 3bbc3661 Avoid repeated (de)serialization when syncing (moneromooo-monero)
| * cryptonote_basic: some more minor speedupsmoneromooo-monero2019-03-251-4/+16
| |
| * cryptonote_basic: speedup calculate_block_hashmoneromooo-monero2019-03-251-2/+7
| | | | | | | | | | The block 202612 fix can be left tested at the end, if we already know we're not in the general case
| * cryptonote: block parsing + hash calculation speedupmoneromooo-monero2019-03-252-4/+30
| | | | | | | | This saves a duplicate serialization step
* | Merge pull request #5288Riccardo Spagni2019-04-011-2/+3
|\ \ | | | | | | | | | 39f000b3 miner: fix possible exit crash due to race in stop (moneromooo-monero)
| * | miner: fix possible exit crash due to race in stopmoneromooo-monero2019-03-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a thread asks to stop the miner, m_stop will be set, and that thread will wait to join. If the main thread is exiting at that time, it will ask the miner to stop, but the miner will claim it's not mining and early out since m_stop is set. This will cause the database and other things to get shutdown. If the miner happens to find a block at that time, it will try to call core, and crash. Instead, lock and check whether any threads are currently in m_threads, since they'll only be cleared once the threads are joined. Moreover, since we lock, the second thread will have to wait for the first one to have finished. Calling join twice on a thread seems fine as per pthread_join(3).
* | | Make difficulty 128 bit instead of 64 bitmoneromooo-monero2019-03-243-4/+115
| |/ |/| | | | | | | | | Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
* | Merge pull request #5277Riccardo Spagni2019-03-241-0/+7
|\ \ | | | | | | | | | adf6d773 wallet: fix offline signing calling a daemon RPC (moneromooo-monero)
| * | wallet: fix offline signing calling a daemon RPCmoneromooo-monero2019-03-211-0/+7
| | |
* | | cryptonote: fix calculating coinbase tx hashmoneromooo-monero2019-03-211-10/+6
|/ / | | | | | | | | Also set error flag on exception when handling new txes to keep tests working
* | Merge pull request #5271Riccardo Spagni2019-03-211-0/+3
|\ \ | | | | | | | | | 2790d4d3 hardfork: update last_versions on popped block (moneromooo-monero)