aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/CMakeLists.txt (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-03-07tests: handle any cmake detected python interpretermoneromooo-monero1-1/+1
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero1-12/+10
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.
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-2/+3
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: put each test executable in its own directoryBen Boeckel1-16/+22
2014-10-06build libunbound from external if no local libunbound or for static buildsRiccardo Spagni1-22/+1
2014-10-06build libunbound from external if no local libunbound or for static buildsRiccardo Spagni1-22/+1
2014-10-02fixed unbound static lib on mingw as libunbound.dll.aRiccardo Spagni1-1/+5
2014-10-02remove pthreads, successfully tested on gcc 4.9.1 without pthreadsRiccardo Spagni1-1/+5
2014-10-02fixed unbound static lib on mingw as libunbound.dll.aRiccardo Spagni1-1/+5
2014-10-02remove pthreads, successfully tested on gcc 4.9.1 without pthreadsRiccardo Spagni1-1/+5
2014-09-29dependencies enforced, send que error message log level movedRiccardo Spagni1-5/+5
2014-09-24redo FindUnbound.cmakeRiccardo Spagni1-28/+26
2014-09-24fixed cmake folderRiccardo Spagni1-0/+0
2014-09-24added tomerkon's GPG key, cmake folder fixRiccardo Spagni1-0/+0
2014-09-23Updated CMake files -- added libunbound linker flagThomas Winget1-19/+29
CMake config file written, but was unable to test/get it working properly because of a bug in CMake with functions related to find_package. Simple "-lunbound" flag used in its stead for now. May not build on non-Linux systems, not sure yet.
2014-07-23License updated to BSD 3-clausefluffypony1-2/+32
2014-03-03moved all stuff to githubAntonio Juarez1-0/+15