Bitcoin Forum
May 24, 2024, 10:44:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why are blocks so big?  (Read 951 times)
doobadoo (OP)
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


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
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5208
Merit: 13013


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 (OP)
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


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
Merit: 10


(: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:  

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