summaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
Commit message (Collapse)AuthorAgeFilesLines
* 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)
| * | hardfork: update last_versions on popped blockmoneromooo-monero2019-03-121-0/+3
| |/
* | Merge pull request #5211Riccardo Spagni2019-03-211-0/+5
|\ \ | | | | | | | | | | | | | | | c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec) a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec) d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
| * | device/trezor: HF10 support added, wallet::APIDusan Klinec2019-03-201-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | - import only key images generated by cold signing process - wallet_api: trezor methods added - wallet: button request code added - const added to methods - wallet2::get_tx_key_device() tries to decrypt stored tx private keys using the device. - simplewallet supports get_tx_key and get_tx_proof on hw device using the get_tx_key feature - live refresh enables refresh with trezor i.e. computing key images on the fly. More convenient and efficient for users. - device: has_ki_live_refresh added - a thread is watching whether live refresh is being computed, if not for 30 seconds, it terminates the live refresh process - switches Trezor state
* | Merge pull request #5190Riccardo Spagni2019-03-171-1/+3
|\ \ | | | | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * | daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-251-1/+3
| | |
* | | Merge pull request #5185Riccardo Spagni2019-03-172-4/+9
|\ \ \ | | | | | | | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * | | daemon: new mining_status commandmoneromooo-monero2019-03-092-4/+9
| |/ /
* | | Merge pull request #5135Riccardo Spagni2019-03-171-0/+1
|\ \ \ | | | | | | | | | | | | de32dcea Human readable message if maximum outputs reached (italocoin)
| * | | Human readable message if maximum outputs reacheditalocoin2019-02-101-0/+1
| |/ /
* | / Update 2019 copyrightbinaryFate2019-03-0522-22/+22
| |/ |/|
* | cryptonote: speed up calculating coinbase tx prunable hashmoneromooo-monero2019-03-051-2/+9
| | | | | | | | It's a hash of an empty buffer, so we can avoid keccak
* | core: avoid calculating tx prefix hash when we don't need itmoneromooo-monero2019-03-052-1/+9
| |
* | db: speedup block additionmoneromooo-monero2019-03-053-26/+67
| | | | | | | | by avoiding repeated (de)serialization
* | check load_t_from_json return valuesmoneromooo-monero2019-03-041-1/+2
| |
* | default initialize rpc structuresmoneromooo-monero2019-03-041-1/+2
| |
* | Merge pull request #5125Riccardo Spagni2019-03-042-4/+84
|\ \ | | | | | | | | | 8298f42e miner: it can now autodetect the optimal number of threads (moneromooo-monero)
| * | miner: it can now autodetect the optimal number of threadsmoneromooo-monero2019-02-232-4/+84
| |/