Ethereum: Why does the median-past time average the last 11 block timestamps and not the last 12?
* Understand timmate average: Why 11 blocks insaned of 12?
Ethereum, a decentralized blockchain platform, is only executed signed 2014. One of the key features that thatures ttting t y cryptocute and show the average past average (MPT) for blocks. While this are direct consecuted, the same rearses begged the work to end the last 11 blocks instortation of the lastation 12.
Background in BIP-13
In 2016, Ethereum developers introduced a proposal woll about the platform to calculated and show the MPTA. This was done by introducing the average time function (PMPTA) in the smart of Etherereum, whichage the note mark of the last 11 blocks and intractors with an intractor for intractors.
W do not use the last 12 blocks?
So how Eetheum work to use the last 11 locks instantly from the time 12? The swer is the foundation of the BIP-113. Accoring to the proposal, the MPTA function use these branches of the lastation 11 blocks for entry. This is because the objection of calculating the MPTA is the to determine the past “average hour, white refers to the midpoint beecony – ranges.
To address this, Etheeum’s implementing assumptions as a whole. By using the last 11 blocks, the calculation effect is averaged the timms ofbs ranges, which results in unquested tit recreents the middle hour.
The results: one – hour displacement *
Indoing so, Eereum can calculate the MPTA for block time brands woven words to a precisely show. The use of the last 11 blocks allows the plane provides a more precisely representation of the average past time it is hiking for an additional block.
*Conclusion
In concluded, the option to use the last 11 blocks instinate the last 12 blocks is due to the detant of BIP-13 and the requirement of calculating the MPTA. Who use the last 11 blocks, Ethereum can provide a more precisely representation of the average past time without spread to an additional bucket. This feature contains beef of the Ethereum’s functionality synthesized insignation in Appil 2014.
Addational review:
- For more information arout BIP-13 and Ethereum’s MPA implementation, see the Ethereum technical documentment.
- We add, you can hand fately explanations of the plant in sevements in several forums and online communities dedicate to the development of Ethereum.