mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
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. |
||
---|---|---|
.. | ||
block_reward.cpp | ||
block_reward.h | ||
block_validation.cpp | ||
block_validation.h | ||
bulletproofs.cpp | ||
bulletproofs.h | ||
chain_split_1.cpp | ||
chain_split_1.h | ||
chain_switch_1.cpp | ||
chain_switch_1.h | ||
chaingen.cpp | ||
chaingen.h | ||
chaingen001.cpp | ||
chaingen_main.cpp | ||
chaingen_tests_list.h | ||
CMakeLists.txt | ||
double_spend.cpp | ||
double_spend.h | ||
double_spend.inl | ||
integer_overflow.cpp | ||
integer_overflow.h | ||
multisig.cpp | ||
multisig.h | ||
rct.cpp | ||
rct.h | ||
ring_signature_1.cpp | ||
ring_signature_1.h | ||
transaction_tests.cpp | ||
transaction_tests.h | ||
tx_validation.cpp | ||
tx_validation.h | ||
v2_tests.cpp | ||
v2_tests.h |