aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_import.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815Monzero Build System8 hours1-1/+1
|
* blockchain_utilities: fix --data-dir optionjeffro2562026-04-221-7/+0
|
* blockchain sync: reduce disk writes from 2 to 1 per txjeffro2562025-03-101-2/+5
|
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* blockchain_import: fix wrong reported block/tx hashes on errormoneromooo-monero2021-03-191-5/+11
|
* Remove unused variables in monero codebaseKevin Barbour2021-02-091-1/+1
| | | | | | | | | | | There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
* Allow setting start block on exportHoward Chu2020-10-181-5/+7
| | | | And make import honor the starting block# recorded in a bootstrap file
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* Adding support for hidden (anonymity) txpoolLee Clagett2019-11-021-1/+1
|
* Merge pull request #5915luigi11112019-10-081-6/+10
|\ | | | | | | 8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
| * monerod can now sync from pruned blocksmoneromooo-monero2019-09-271-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #5878luigi11112019-09-241-68/+1
|\ \ | | | | | | | | | f9b3f6e Removed Berkeley DB and db switching logic (JesusRami)
| * | Removed Berkeley DB and db switching logicJesus Ramirez2019-09-161-68/+1
| |/
* / Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez2019-09-021-1/+1
|/
* blockchain_import: error out if preparing to handle blocks failsmoneromooo-monero2019-04-071-1/+5
| | | | Coverity 197562
* Make difficulty 128 bit instead of 64 bitmoneromooo-monero2019-03-241-2/+19
| | | | | | Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
* Update 2019 copyrightbinaryFate2019-03-051-1/+1
|
* core: avoid double parsing blocks after hohmoneromooo-monero2019-03-051-2/+10
|
* Avoid repeated (de)serialization when syncingmoneromooo-monero2019-03-051-3/+3
|
* ArticMine's new block weight algorithmmoneromooo-monero2019-03-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty. Note: the long term block weight is stored in the database, but not in the actual block itself, since it requires recalculating anyway for verification.
* remove some unused codemoneromooo-monero2018-11-231-1/+1
| | | | Found by codacy.com
* blockchain_utilities: fix logs and cout output collidingmoneromooo-monero2018-10-271-2/+2
|
* blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2018-10-221-1/+7
|
* Revert "Merge pull request #4472"Riccardo Spagni2018-10-081-7/+1
| | | | | This reverts commit 79d46c4d551a9b1261801960095bf4d24967211a, reversing changes made to c9fc61dbb56cca442c775faa2554a7460879b637.
* blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2018-10-041-1/+7
|
* v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero2018-09-111-3/+3
|
* Merge pull request #4060Riccardo Spagni2018-07-101-0/+1
|\ | | | | | | 22411149 blockchain_import: make sleep compile on Windows (iDunk5400)
| * blockchain_import: make sleep compile on WindowsiDunk54002018-07-031-0/+1
| |
* | Merge pull request #3716luigi11112018-06-271-4/+4
|\ \ | |/ |/| | | a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
| * replace std::list with std::vector on some hot pathsmoneromooo-monero2018-06-261-4/+4
| | | | | | | | also use reserve where appropriate
* | blockchain_import: warn+delay about using --dangerous-unverified-importmoneromooo-monero2018-06-071-4/+16
|/ | | | This is the new name for --guard-against-pwnage 0
* Stagenetstoffu2018-03-051-3/+8
|
* options: remove testnet-* optionswhythat2018-02-161-2/+1
|
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* Merge pull request #2997Riccardo Spagni2018-01-101-2/+2
|\ | | | | | | 7c4f01a7 blockchain_import: more informative verification switch (moneromooo-monero)
| * blockchain_import: more informative verification switchmoneromooo-monero2017-12-231-2/+2
| |
* | use const refs in for loops for non tiny typesmoneromooo-monero2017-12-181-1/+1
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-161-0/+1
|
* Merge pull request #2736Riccardo Spagni2017-11-141-7/+2
|\ | | | | | | | | | | | | | | | | | | 0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
| * move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-141-7/+2
| | | | | | | | Those have no reason to be in a generic module
* | remove "using namespace std" from headersmoneromooo-monero2017-11-141-1/+1
|/ | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* Merge pull request #2589Riccardo Spagni2017-10-151-5/+5
|\ | | | | | | 8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
| * add a command_line function to check for defaulted optionsmoneromooo-monero2017-10-061-5/+5
| |
* | Merge pull request #2568Riccardo Spagni2017-10-151-1/+1
|\ \ | | | | | | | | | 7130cf0c Add tools::on_startup, and warn about glibc 2.25 bug if found (moneromooo-monero)
| * | Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero2017-10-141-1/+1
| |/ | | | | | | https://sourceware.org/bugzilla/show_bug.cgi?id=21778
* | Merge pull request #2567Riccardo Spagni2017-10-151-3/+0
|\ \ | | | | | | | | | 54940d8c blockchain_import: remove a few commented out obsolete lines (moneromooo-monero)
| * | blockchain_import: remove a few commented out obsolete linesmoneromooo-monero2017-10-031-3/+0
| |/
* | Merge pull request #2469Riccardo Spagni2017-10-151-0/+20
|\ \ | |/ |/| | | 7adceee6 precomputed block hashes are now in blocks of N (currently 256) (moneromooo-monero)
| * precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-181-0/+20
| | | | | | | | This shaves a lot of space off binaries
* | Use actual batch size for resize estimatesHoward Chu2017-09-171-19/+44
|/ | | | | | | And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height