Bitcoin Forum
April 19, 2018, 05:48:55 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Open Bootstrap.dat with VB.NET  (Read 663 times)
Zetler
Jr. Member
*
Offline Offline

Activity: 42
Merit: 0


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

1524160135
Hero Member
*
Offline Offline

Posts: 1524160135

View Profile Personal Message (Offline)

Ignore
1524160135
Reply with quote  #2

1524160135
Report to moderator
1524160135
Hero Member
*
Offline Offline

Posts: 1524160135

View Profile Personal Message (Offline)

Ignore
1524160135
Reply with quote  #2

1524160135
Report to moderator
1524160135
Hero Member
*
Offline Offline

Posts: 1524160135

View Profile Personal Message (Offline)

Ignore
1524160135
Reply with quote  #2

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

Posts: 1524160135

View Profile Personal Message (Offline)

Ignore
1524160135
Reply with quote  #2

1524160135
Report to moderator
1524160135
Hero Member
*
Offline Offline

Posts: 1524160135

View Profile Personal Message (Offline)

Ignore
1524160135
Reply with quote  #2

1524160135
Report to moderator
Sukrim
Legendary
*
Offline Offline

Activity: 2324
Merit: 1002


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://www.coinlend.org <-- automated lending at various exchanges. No fees(!).
Mail me at Bitmessage: BM-BbiHiVv5qh858ULsyRDtpRrG9WjXN3xf
danneu
Jr. Member
*
Offline Offline

Activity: 32
Merit: 0



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!