<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monzero-core.git/tests/block_weight/block_weight.py, branch main</title>
<subtitle>Monzero core node, command-line wallet, consensus code, and release tooling.
</subtitle>
<id>https://code.monzero.org/monzero-core.git/atom?h=main</id>
<link rel='self' href='https://code.monzero.org/monzero-core.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/'/>
<updated>2022-03-04T05:59:20Z</updated>
<entry>
<title>Copyright: Update to 2022</title>
<updated>2022-03-04T05:59:20Z</updated>
<author>
<name>mj-xmr</name>
<email>mjxmr@protonmail.com</email>
</author>
<published>2022-03-01T11:16:17Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=da9aa1f7f802552b9de459f331a2f39c84898009'/>
<id>urn:sha1:da9aa1f7f802552b9de459f331a2f39c84898009</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update copyright year to 2020</title>
<updated>2020-05-07T02:36:54Z</updated>
<author>
<name>SomaticFanatic</name>
<email>afdlkajdlfkj@aldkfjf.com</email>
</author>
<published>2020-05-07T02:36:54Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=5ef0607da6042df51a57703bd223c5c8024741f6'/>
<id>urn:sha1:5ef0607da6042df51a57703bd223c5c8024741f6</id>
<content type='text'>
Update copyright year to 2020
</content>
</entry>
<entry>
<title>tests/block_weight: use integer division when computing median</title>
<updated>2019-04-09T10:40:57Z</updated>
<author>
<name>stoffu</name>
<email>stoffu@protonmail.ch</email>
</author>
<published>2019-04-09T10:13:55Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=467f4c7ed303ca56bb0545716791c84fe11e3ce6'/>
<id>urn:sha1:467f4c7ed303ca56bb0545716791c84fe11e3ce6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/block_weight: remove unused MULTIPLIER_SMALL</title>
<updated>2019-04-09T10:40:52Z</updated>
<author>
<name>stoffu</name>
<email>stoffu@protonmail.ch</email>
</author>
<published>2019-04-09T09:54:00Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=815d08dc5f18f49fe229dfddfefdc18cbe6a50a8'/>
<id>urn:sha1:815d08dc5f18f49fe229dfddfefdc18cbe6a50a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>block_weight: fix python 2/3 compatibility</title>
<updated>2019-04-01T15:31:52Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-03-10T14:35:44Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=1a91385eafa09533c56e97e3f213f80fc6995b20'/>
<id>urn:sha1:1a91385eafa09533c56e97e3f213f80fc6995b20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: handle any cmake detected python interpreter</title>
<updated>2019-03-07T16:46:02Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-02-27T20:57:07Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=fa43b547804496ea2bd7ad42893708f97b4f442c'/>
<id>urn:sha1:fa43b547804496ea2bd7ad42893708f97b4f442c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ArticMine's new block weight algorithm</title>
<updated>2019-03-04T09:33:58Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-01-21T17:18:50Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=b8787f430262520a9e81267802b869b1a7cde245'/>
<id>urn:sha1:b8787f430262520a9e81267802b869b1a7cde245</id>
<content type='text'>
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.
</content>
</entry>
</feed>
