Bitcoin Forum
December 07, 2016, 08:37:37 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Why are blocks so big?  (Read 808 times)
doobadoo
Sr. Member
****
Offline Offline

Activity: 364


View Profile
July 21, 2012, 02:33:26 AM
 #1

I decided to take a look into this whole "block chain is getting too big" madness.  Here is a recently generated block:
https://blockexplorer.com/block/00000000000007296b28cec4e7493308f9746b48b54fdac6d36ab299a90bfde2

I took everything in the table, TX id, fee, size, addresses, etc and saved it as a comma separated value file.  Blockchain explorer tells me this is 8.25 KB.  But my file is only 4.5 KB.  And granted i don't have the merkel root, or the full tx id.  But i am scratching my head as to why the reported size is 2x what it actually weighs as a CSV.  Whats more, when i zipped the csv, it went down to 2.6 bytes.

Why is the blockchain so inefficient at storing data? 

"It is, quite honestly, the biggest challenge to central banking since Andrew Jackson." -evoorhees
1481099857
Hero Member
*
Offline Offline

Posts: 1481099857

View Profile Personal Message (Offline)

Ignore
1481099857
Reply with quote  #2

1481099857
Report to moderator
1481099857
Hero Member
*
Offline Offline

Posts: 1481099857

View Profile Personal Message (Offline)

Ignore
1481099857
Reply with quote  #2

1481099857
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2492


View Profile
July 21, 2012, 03:14:43 AM
 #2

That table doesn't show the input prev_out hashes (32 bytes each) or the input scriptSigs (~138 bytes each). Each line in the "From" column is one input. This info is necessary for the network to function, but it's omitted from that table because it isn't so important when you're interested in blocks. It's all listed on transaction pages and the "raw block" page.

The JSON representation on the raw block page is 32.6 KiB uncompressed and ~9 KiB compressed -- far worse than Bitcoin's binary representation.

Whats more, when i zipped the csv, it went down to 2.6 bytes.

Were you using a magical computer to represent that four-fifths of a bit? Smiley

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
doobadoo
Sr. Member
****
Offline Offline

Activity: 364


View Profile
July 21, 2012, 03:25:50 AM
 #3


Whats more, when i zipped the csv, it went down to 2.6 bytes.

Were you using a magical computer to represent that four-fifths of a bit? Smiley

crap you got me, i'm an alien using a base-5 computer.

"It is, quite honestly, the biggest challenge to central banking since Andrew Jackson." -evoorhees
unclemantis
Member
**
Offline Offline

Activity: 98


(:firstbits => "1mantis")


View Profile
July 24, 2012, 03:55:00 PM
 #4

http://1.bp.blogspot.com/-2ei59BEH4tU/Tf83itgomGI/AAAAAAAAAWE/3kSJxRbyL_E/s1600/Duplos.jpg

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!