Bitcoin Forum
November 21, 2017, 02:25:07 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Open Bootstrap.dat with VB.NET  (Read 661 times)
Zetler
Jr. Member
*
Offline Offline

Activity: 42


View Profile
April 21, 2014, 08:26:08 AM
#1

I downloaded the torrent with the entire blockchain and tried to open bootstrap.dat.

With its 17GB it is obviously too large for most text editors, so I programmed a VB.NET app to do this.

Assuming encoding ISO-8859-1, I get this rather confusing line:
""                                     ;z{z,>gvaÈQ2:K^J)_I +|                                   M EThe Times 03/Jan/2009 Chancellor on brink of second bailout for banks *   CAgUH'gq0\֨(9   yba޶I?L8U\8M WLp+k_          o""

Assuming UTF8 does not make much more sense either:
"����                                     ;���z{�z�,>gv�a��Q2:���K^J)�_I�� �+|                                   ����M�� EThe Times 03/Jan/2009 Chancellor on brink of second bailout for banks���� �*   CAg����UH'g�q0�\֨(�9   �yb��a޶I��?L�8��U���\8M�� �W�Lp+k�_�    �����      o�"

Will it work if I change the encoding on this VB.NET code?
System.Text.Encoding.UTF8

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511274307
Hero Member
*
Offline Offline

Posts: 1511274307

View Profile Personal Message (Offline)

Ignore
1511274307
Reply with quote  #2

1511274307
Report to moderator
Sukrim
Legendary
*
Offline Offline

Activity: 2184


View Profile
April 22, 2014, 12:19:26 AM
#2

...the file is in a binary format. The small piece of text you see is the genesis block by Satoshi, he embedded it on purpose to make sure he did not "premine" a chain in secret, since it would have been impossible to predict the headline of The Times in advance.

https://bitfinex.com <-- leveraged trading of BTCUSD, LTCUSD and LTCBTC (long and short) - 10% discount on fees for the first 30 days with this refcode: x5K9YtL3Zb
Mail me at Bitmessage: BM-BbiHiVv5qh858ULsyRDtpRrG9WjXN3xf
danneu
Jr. Member
*
Offline Offline

Activity: 32



View Profile
April 22, 2014, 12:24:45 AM
#3

View it in hexadecimal for a better representation of the data.

If bootstrap.dat is a concatenation of what you find in block.dat files, then the data is a repeating sequence of:

  • Magic bytes: uint32 little endian
  • Byte-count of the block: uint32 little endian
  • Block: BlockCodec
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!