Draft BIP : fixed-schedule block size increase



Summary:

In a Bitcoin Development mailing list, Peter Todd raised a question regarding the stability of block height to work with and if block timestamps aren't chronological in order, what would happen if a block following a size increase trigger is back in the past before the size increase. Gavin Andresen responded by proposing that comparing the timestamp against the median time, which is guaranteed by the protocol rules to monotonically advance, could solve the issue. However, he acknowledged that this will complicate the implementation quite a bit. Instead, Gavin mostly implemented a variant that replaced the MAX_BLOCK_SIZE constant with a function that took both a timestamp and a block height. He further pointed out that digging out the block height or calculating the median timestamp for the block would involve changing quite a few functions in the call-chain or acquiring the cs_main lock to consult the current best chain.


Updated on: 2023-06-10T00:28:15.370506+00:00