minibolt-guide / minibolt

A step-by-step guide to building a Bitcoin & Lightning node and other stuff on a personal computer
https://minibolt.info
MIT License
72 stars 36 forks source link

Bitcoin blockchain size increased to 465GB #41

Closed GlenCooper closed 1 year ago

GlenCooper commented 1 year ago

What

The size of the bitcoin blockchain has increased from 430 GB to 465 GB

Why

This change will help the minibolt documentation present more accurate information, as well as help me contribute to a project that I care about.

How

Replaced previous "430" instances with "465" instead.

Test & maintenance

How can the changes be tested? Went to https://blockchair.com/bitcoin/charts/blockchain-size, downloaded the .tsv file, opened the .tsv with LibreOffice, got the current blockchain size that way.

1ma commented 1 year ago

My node (height 781693) says the blockchain strictly is still at 435GB.

$ du -h -c --apparent-size blocks/blk*.dat
...
128M    blocks/blk03476.dat
128M    blocks/blk03477.dat
127M    blocks/blk03478.dat
127M    blocks/blk03479.dat
128M    blocks/blk03480.dat
127M    blocks/blk03481.dat
127M    blocks/blk03482.dat
128M    blocks/blk03483.dat
128M    blocks/blk03484.dat
127M    blocks/blk03485.dat
128M    blocks/blk03486.dat
65M blocks/blk03487.dat
435G    total

But sure, why not. We'll get there eventually. Thanks for the PR :+1:

GlenCooper commented 1 year ago

Wow... oops.. my bad. You're right. When I checked using the same method that you did, I also see 435GB on my node.

I realize now that my method used was flawed. I learned just now that 1 GB does not equal 1,000,000,000 bytes. Per https://archive.ph/271xG#selection-1347.30-1351.53 | https://www.electronicshub.org/how-many-bytes-are-in-a-gigabyte/; a single Gigabyte consists of 1024 megabytes, 1048576 Kilobytes, and a total of 1073741824 bytes.

I would rather have the documentation be as accurate as possible. For that reason, I will open another PR correcting it again. This time correcting it from 465 to 435G. Doing this will give me more experience with using git, make the documentation more accurate, and remind me to continue working on converting my node to a new one fully self-built using minibolt as a guide. Thank you for your help and effort of putting minibolt together, and being patient with me.

1ma commented 1 year ago

Don't worry about it @GlenCooper. You learned something with this exercise, and your edit will be accurate eventually :smile: