Difference between revisions of "DigiSpeed"

From DigiByte Wiki
Jump to navigation Jump to search
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
Block 1,430,000 Dec. 4th 2015
+
== <span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:x-large;">'''How and Why DigiSpeed was introduced.'''</span></span> ==
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">Activated in December 2015 this was a hard fork that focused on making the&nbsp;[https://bitcointalk.org/index.php?topic=408268.msg13062879#msg13062879 DigiByte transaction speeds faster].<br/> Block time was reduced by 50% from 30 seconds to 15 seconds that made it 40x faster than Bitcoin (10 min&nbsp;blocks vs 15 sec blocks). And new block propagation code was added based on&nbsp;[http://www.dgbwiki.com/wikifiles/P2P2013_041-DigiSpeed_Research.pdf Microsoft Research].</span></span></p>
  
Activated in December 2015 this was a hard fork that focused on making the&nbsp;[https://bitcointalk.org/index.php?topic=408268.msg13062879#msg13062879 DigiByte coin Transaction speeds faster]. Block time was reduced by 50% to 15 seconds and new block propagation code was added based on&nbsp;[https://www.tik.ee.ethz.ch/file/49318d3f56c1d525aabf7fda78b23fc0/P2P2013_041.pdf Microsoft Research]. This allows DigiByte to handle up to 560 transactions per second. Every 2 years the DigiByte blockchain's dynamic system doubles the number of transactions per second by doubling the block size. In 2017, capability reaches 560 transactions per second, with a maximum capability of 280,000 transactions per second to be reached in 2035.
+
== <span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:x-large;">'''How transaction speed&nbsp;increases?'''</span></span> ==
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">DigiByte blockchain has 1MB max physical block size just like Bitcoin but 15 seconds block time and [https://github.com/digibyte/digibyte/blob/master/src/consensus/consensus.h 4x SegWit scale factor] enables superior on-chain scalability.</p>
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">'''Transaction capacity of the network depends on more than one variable such as actual block time, miner fee and SegWit usage intensity in the related block.'''</p>
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">If a single transaction is considered as 250 bytes, It can be assumed that the DigiByte blockchain can handle between 266 and 1066 transactions per second according to calculations below;</p>
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">1000000 bytes block size / 250 bytes tx size / 15 seconds block time = '''266 TPS''' with zero SegWit usage.</p>
 +
<p style="text-align: justify;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">4000000 bytes SegWit scaling / 250 bytes tx size / 15 seconds block time = '''1066 TPS''' with full SegWit usage.</span></span></p>
 +
 
 +
==<span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:x-large;">'''Clarification for original DigiSpeed code'''</span></span>==
 +
<span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">This was originally posted by Jared Tate (DigiByte Founder) in Telegram:</span></span>
 +
 
 +
 
 +
<span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;"></span></span><span style="font-family:Arial,Helvetica,sans-serif;"><span style="font-size:medium;">Lets clear up some things the original block doubling code was introduced in December 2015 and plan at the point was that a block size doubling would occur every 2 years in December.Most of the marketing images we have for this were created from 2015-2017.During the build in for SegWit starting in 2017 and many of the numerous changes/releases that have been made over the past 2 years we broke the original block doubling code in several places.<br  />Keep in mind that from January 2017 till now there has probably been 150,000 lines of code changed within DigiByte. The DigiByte blockchain is not a simple system.During all the updates in 2017/2018 and through early 2019 all core devs had planned on keeping the block doubling code intact but we knew we needed to fix some thing, renable various components and test them thuroughly test the doubling before the scheduled December 2019 doubling.After devsdidn't get the doubling code fixed in a secure, tested way in the lead up to the 7.17.2 odocrypt release we posted to make sure it was clear to everyone we would not have a doubling in late 2019 with the current Odocrypt release.<br  />Up until the Odocrypt release a couple months ago we had planned to fix the block size doubling code before the 2019 end of year doubling (December was original time). But do to time constraints and the fact we don’t need it we didn’t get it back in for this cycle.Testing and getting the Odocrypt release ready took more time than we expected. And we prioritized many over things and features such as dandelion and other performance tweaks.<br  />We also chose to focus on DigiAssets.Because here is the deal, if we have no utility and reason to fill up blocks the total capacity is irrelevant. The 2017 doubling capacity did happen with SegWit and the way tx structures were altered if we get everyone on segwit it could be theorized at 4x increase still by 2019 end.</span></span>

Latest revision as of 21:54, 30 January 2021

How and Why DigiSpeed was introduced.

Activated in December 2015 this was a hard fork that focused on making the DigiByte transaction speeds faster.
Block time was reduced by 50% from 30 seconds to 15 seconds that made it 40x faster than Bitcoin (10 min blocks vs 15 sec blocks). And new block propagation code was added based on Microsoft Research.

How transaction speed increases?

DigiByte blockchain has 1MB max physical block size just like Bitcoin but 15 seconds block time and 4x SegWit scale factor enables superior on-chain scalability.

Transaction capacity of the network depends on more than one variable such as actual block time, miner fee and SegWit usage intensity in the related block.

If a single transaction is considered as 250 bytes, It can be assumed that the DigiByte blockchain can handle between 266 and 1066 transactions per second according to calculations below;

1000000 bytes block size / 250 bytes tx size / 15 seconds block time = 266 TPS with zero SegWit usage.

4000000 bytes SegWit scaling / 250 bytes tx size / 15 seconds block time = 1066 TPS with full SegWit usage.

Clarification for original DigiSpeed code

This was originally posted by Jared Tate (DigiByte Founder) in Telegram:


Lets clear up some things the original block doubling code was introduced in December 2015 and plan at the point was that a block size doubling would occur every 2 years in December.Most of the marketing images we have for this were created from 2015-2017.During the build in for SegWit starting in 2017 and many of the numerous changes/releases that have been made over the past 2 years we broke the original block doubling code in several places.
Keep in mind that from January 2017 till now there has probably been 150,000 lines of code changed within DigiByte. The DigiByte blockchain is not a simple system.During all the updates in 2017/2018 and through early 2019 all core devs had planned on keeping the block doubling code intact but we knew we needed to fix some thing, renable various components and test them thuroughly test the doubling before the scheduled December 2019 doubling.After devsdidn't get the doubling code fixed in a secure, tested way in the lead up to the 7.17.2 odocrypt release we posted to make sure it was clear to everyone we would not have a doubling in late 2019 with the current Odocrypt release.
Up until the Odocrypt release a couple months ago we had planned to fix the block size doubling code before the 2019 end of year doubling (December was original time). But do to time constraints and the fact we don’t need it we didn’t get it back in for this cycle.Testing and getting the Odocrypt release ready took more time than we expected. And we prioritized many over things and features such as dandelion and other performance tweaks.
We also chose to focus on DigiAssets.Because here is the deal, if we have no utility and reason to fill up blocks the total capacity is irrelevant. The 2017 doubling capacity did happen with SegWit and the way tx structures were altered if we get everyone on segwit it could be theorized at 4x increase still by 2019 end.