Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: supermankid on April 11, 2022, 08:43:49 AM



Title: Why the block height do not correspod to bitcoin core database size?
Post by: supermankid on April 11, 2022, 08:43:49 AM
Hello all,

If current block height is ~731378
And as I understand it bitcoin block is 1 MB
731378 blocks = 731378 MB
731378/1024 ~714 GB
But the current up-to-date block is about 500 GB.
How did this size difference possible?
Or
Where am I getting it wrong?


Title: Re: Why the block height do not correspod to bitcoin core database size?
Post by: nc50lc on April 11, 2022, 09:02:42 AM
Blocks can be lower than the "maximum" block size (currently 4 million Weight Units).
Most of the first thousands blocks are empty and the rest (until Bitcoin became famous) only have a small number of transactions included,
so their size are only a few kB.

For example: Block #1000 (https://blockstream.info/block/00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09) doesn't have any transaction in it aside from the coinbase txn; its size is only 0.216 kB.


Title: Re: Why the block height do not correspod to bitcoin core database size?
Post by: ABCbits on April 11, 2022, 11:58:55 AM
Blocks can be lower than the "maximum" block size (currently 4 Weight Units).

To be more precise, maximum block size was 1MB before SegWit activation (August 2017) and now it's 4 million weight units (some people also refer it as 4 kWu).

Most of the first thousands blocks are empty and the rest (until Bitcoin became famous) only have a small number of transactions included,
so their size are only a few kB.

Or rather few hundred bytes.


Title: Re: Why the block height do not correspod to bitcoin core database size?
Post by: nc50lc on April 12, 2022, 04:39:58 AM
Blocks can be lower than the "maximum" block size (currently 4 Weight Units).
To be more precise, maximum block size was 1MB before SegWit activation (August 2017) and now it's 4 million weight units (some people also refer it as 4 kWu).
Thanks, I previously edited it from "4 vMB" because I decided to use "Weight Unit" instead but forgot to add "million".