Author

Topic: [NOT A DISCUSION ABOUT INCREMENTING BLOCK SIZE] Bitcoin blocks size (Read 142 times)

jr. member
Activity: 46
Merit: 28
The maximum block size is defined in src/consensus/consensus.h.
Code:
/** The maximum allowed weight for a block, see BIP 141 (network rule) */
static const unsigned int MAX_BLOCK_WEIGHT = 4000000;

If you search for WITNESS_SCALE_FACTOR (which is also defined in the above file as 4), you'll notice it also appears in other parts where there are bytes that need to be measured. In other words there isn't a parameter equal to 1 MB, there's just the above, and the code takes into account the fact that 1 byte is equal with 4 weight units.
Your question has already been answered here: Block size limit in source code

Hi thanks both for your answers. I appreciate it.


Regards,
SS
legendary
Activity: 2464
Merit: 4415
🔐BitcoinMessage.Tools🔑
Your question has already been answered here: Block size limit in source code
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
The maximum block size is defined in src/consensus/consensus.h.
Code:
/** The maximum allowed weight for a block, see BIP 141 (network rule) */
static const unsigned int MAX_BLOCK_WEIGHT = 4000000;

If you search for WITNESS_SCALE_FACTOR (which is also defined in the above file as 4), you'll notice it also appears in other parts where there are bytes that need to be measured. In other words there isn't a parameter equal to 1 MB, there's just the above, and the code takes into account the fact that 1 byte is equal with 4 weight units.
jr. member
Activity: 46
Merit: 28
Hi,

Could someone point me to the code file where the block size is defined?
I need to know the theoretical max block size if we ignore SegWit, etc.

Thanks in advace.


Regards,
SS
Jump to: