Bitcoin Forum
May 24, 2024, 11:01:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can someone please provide two graphs built on past blockchain data?  (Read 272 times)
upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
September 10, 2015, 10:36:41 PM
 #1

I proposed BIP 106 to solve the Block Size Max Cap issue - https://github.com/bitcoin/bips/blob/master/bip-0106.mediawiki. The graphs I need are regarding this BIP.

Blockchain.info currently provides a graph plotting the historical data of block size for each block, which can be found at https://blockchain.info/charts/avg-block-size?timespan=all&showDataPoints=false&daysAverageString=1&show_header=true&scale=0&address=

I need two similar graphs plotting max block size cap against each block, calculated as per my two proposal...



Proposal 1: Depending only on previous block size calculation

The basic idea in alogorithmic format is as follows...

Code:
If more than 50% of block's size, found in the first 2000 of the last difficulty period, is more than 90% MaxBlockSize
    Double MaxBlockSize
Else if more than 90% of block's size, found in the first 2000 of the last difficulty period, is less than 50% MaxBlockSize
    Half MaxBlockSize
Else
    Keep the same MaxBlockSize


Proposal 2: Depending on previous block size calculation and previous Tx fee collected by miners

The basic idea in alogorithmic format is as follows...

Code:
TotalBlockSizeInLastButOneDifficulty = Sum of all Block size of first 2008 blocks in last 2 difficulty period
TotalBlockSizeInLastDifficulty = Sum of all Block size of second 2008 blocks in last 2 difficulty period (This actually includes 8 blocks from last but one difficulty)

TotalTxFeeInLastButOneDifficulty = Sum of all Tx fees of first 2008 blocks in last 2 difficulty period
TotalTxFeeInLastDifficulty = Sum of all Tx fees of second 2008 blocks in last 2 difficulty period (This actually includes 8 blocks from last but one difficulty)

If ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 > 50% MaxBlockSize) AND (TotalTxFeeInLastDifficulty > TotalTxFeeInLastButOneDifficulty) AND (TotalBlockSizeInLastDifficulty > TotalBlockSizeInLastButOneDifficulty) )
    MaxBlockSize = TotalBlockSizeInLastDifficulty * MaxBlockSize / TotalBlockSizeInLastButOneDifficulty
Else If ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 < 50% MaxBlockSize) AND (TotalTxFeeInLastDifficulty < TotalTxFeeInLastButOneDifficulty) AND (TotalBlockSizeInLastDifficulty < TotalBlockSizeInLastButOneDifficulty) )
    MaxBlockSize = TotalBlockSizeInLastDifficulty * MaxBlockSize / TotalBlockSizeInLastButOneDifficulty
Else
    Keep the same MaxBlockSize

Is it possible to provide these two graphs assuming max block size cap for block 1 was 1mb ?
achow101
Staff
Legendary
*
Offline Offline

Activity: 3402
Merit: 6648


Just writing some code


View Profile WWW
September 11, 2015, 02:26:08 AM
 #2

I can probably do this.

Just for clarification, you want two graphs, one for each proposal, which charts the maximum block size as if your proposals had been implemented since the genesis block. Also assuming 1 MB was the initial limit for the genesis block.

Is there a reward Wink

BTW, this doesn't belong in tech support, I have already reported this so it should be moved.

upal (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 102


View Profile
September 11, 2015, 12:27:13 PM
 #3

I can probably do this.

Just for clarification, you want two graphs, one for each proposal, which charts the maximum block size as if your proposals had been implemented since the genesis block. Also assuming 1 MB was the initial limit for the genesis block.

Is there a reward Wink

BTW, this doesn't belong in tech support, I have already reported this so it should be moved.

Yes, you are right. Nopes, there is no reward as such...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!