Author

Topic: What is the blockchain like ? (Read 1102 times)

legendary
Activity: 2814
Merit: 2472
https://JetCash.com
June 11, 2016, 01:19:09 AM
#10
Don't forget that SegWit will add some extra files.
jr. member
Activity: 34
Merit: 4
June 07, 2016, 10:27:38 AM
#9
I still have an XP version running (although am pretty sure it is using NTFS) - the maximum size that I seem to see for any of the block files is 134 MB.

They are named as such:

blk00000.dat
blk00001.dat
blk00002.dat
...

The "reverse" files are named as such:

rev00000.dat
rev00001.dat
rev00002.dat
...

(and are much smaller)


thanks for the response. Googling for the above file names took me to a reddit link mentioning an article "Bitcoin: 285 bytes that changed the world", which was published 4 years ago, and is no longer available. However, I found it in the internet archive and it contains exactly what I was looking for.

For those interested https://web.archive.org/web/20140213190023/http://james.lab6.com/2012/01/12/bitcoin-285-bytes-that-changed-the-world/
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
June 07, 2016, 10:00:19 AM
#8
I still have an XP version running (although am pretty sure it is using NTFS) - the maximum size that I seem to see for any of the block files is 134 MB.

They are named as such:

blk00000.dat
blk00001.dat
blk00002.dat
...

The "reverse" files are named as such:

rev00000.dat
rev00001.dat
rev00002.dat
...

(and are much smaller)
jr. member
Activity: 34
Merit: 4
June 07, 2016, 09:52:22 AM
#7

I'm pretty sure that he meant:

"That may not be supported by all Operating Systems".

Meaning that there are some Operating Systems that won't support sizes that large (60GB) for a single file.


you are correct, this is what i meant by that statement.

However, on second thoughts, I realize that only filesystems such as FAT16 and FAT32 will not be able to handle that file size. (FAT16 cannot even have a partition larger than 2GB) Generally, even someone still running Windows XP (definitely not recommended) can be expected to have it installed on a NTFS drive.
legendary
Activity: 3472
Merit: 4801
June 07, 2016, 09:32:42 AM
#6
I am almost certain it is not a single 60+ GB file, since all OSes may not support that.

You are right when you write tha blockchain is not in a single file, as other have explain it is splitted in many smaller files.

You are wrong when you write that all OSes may not support them... in fact maximum file size depends by the type of filesystem that you use on your drives... and also the old implementation of NTFS filesystem (used since windows NT version) has a maximum file size of about 16TB.

Nowadays, on windows systems, is commonly in use NTFS5 which has a maximum file size of about 16 ExaBytes.

 Smiley

I think you misunderstood the OP.

When he said:
since all OSes may not support that.

I'm pretty sure that he meant:

"That may not be supported by all Operating Systems".

Meaning that there are some Operating Systems that won't support sizes that large (60GB) for a single file.

I think in that case that the OP is NOT wrong.
staff
Activity: 3458
Merit: 6793
Just writing some code
June 07, 2016, 08:13:30 AM
#5
For Bitcoin Core and its derivatives, the blockchain is stored as multiple files, around 130 Mb each. The blocks are stored on the disk in their serialized format. The extra data for each block are the 4 network magic bytes and a varint the indicates the block size in bytes. Those data files are append only. There are additional files which index the locations of each block as well as undo data for those indices because everything is append only.

Thanks, could you please guide me to some place where I can find some information regarding the content and structure of these files, how they are numbered, the default locations they are saved in (for Windows, Linux etc.) ?
You'll have to dig through the source code: https://github.com/bitcoin/bitcoin
hero member
Activity: 1442
Merit: 578
June 07, 2016, 07:57:39 AM
#4
I am almost certain it is not a single 60+ GB file, since all OSes may not support that.

You are right when you write tha blockchain is not in a single file, as other have explain it is splitted in many smaller files.

You are wrong when you write that all OSes may not support them... in fact maximum file size depends by the type of filesystem that you use on your drives... and also the old implementation of NTFS filesystem (used since windows NT version) has a maximum file size of about 16TB.

Nowadays, on windows systems, is commonly in use NTFS5 which has a maximum file size of about 16 ExaBytes.

 Smiley
jr. member
Activity: 34
Merit: 4
June 07, 2016, 07:42:07 AM
#3
For Bitcoin Core and its derivatives, the blockchain is stored as multiple files, around 130 Mb each. The blocks are stored on the disk in their serialized format. The extra data for each block are the 4 network magic bytes and a varint the indicates the block size in bytes. Those data files are append only. There are additional files which index the locations of each block as well as undo data for those indices because everything is append only.

Thanks, could you please guide me to some place where I can find some information regarding the content and structure of these files, how they are numbered, the default locations they are saved in (for Windows, Linux etc.) ?
staff
Activity: 3458
Merit: 6793
Just writing some code
June 06, 2016, 06:55:33 AM
#2
For Bitcoin Core and its derivatives, the blockchain is stored as multiple files, around 130 Mb each. The blocks are stored on the disk in their serialized format. The extra data for each block are the 4 network magic bytes and a varint the indicates the block size in bytes. Those data files are append only. There are additional files which index the locations of each block as well as undo data for those indices because everything is append only.
jr. member
Activity: 34
Merit: 4
June 06, 2016, 01:23:29 AM
#1
please excuse me for the noob like question. But I am asking since I use Electrum and do not run bitcoin-core.

In what form does the blockchain exist on full nodes, is it as a single file or a collection of files ? If more than 1 file are they numbered in any way ?  I am almost certain it is not a single 60+ GB file, since all OSes may not support that.

Does the actual blockchain contain extra data besides the actual blocks (meta data for indexing etc.)?
Jump to: