This PR adds a draft BIP, bip-adaptive-blocksize.mediawiki, for a hard fork that replaces the fixed 4,000,000 weight unit block limit with a limit recomputed for every block.
Rule. The maximum weight of the next block is
min(max(10 × max(median of last 12,961 block weights, median of last 52,561 block weights), 4,000,000), C)
The windows are about 90 and 365 days of blocks. The sigop cost limit scales with it at the current ratio of 50 weight units per sigop cost.
Source. The algorithm is adapted from the adaptive block size algorithm in the Nexa full node (src/consensus/adaptive_blocksize.cpp). It uses the same multiplier (10) and the same 90/365-day windows as Nexa, applied to BIP 141 weight instead of serialized size. Every constant taken from Nexa is linked to a pinned file and line in the document.
Status. Draft. No number is requested; please refer to it by title until an editor assigns one. Open questions, all listed in the document:
- activation mechanism and height
- floor (draft: 4,000,000 WU) and absolute cap (open)
- whether a multiplier of 10 is appropriate for Bitcoin
- whether the windows include pre-activation blocks
- whether to require BIP 54 or other worst-case validation limits
Discussion. A mailing-list post to bitcoin-devel will follow shortly. This PR is being opened first so the draft text can be linked from that post.
Reference implementation. None for Bitcoin yet. The Nexa implementation is linked as prior art, and a Python model plus test vectors are included in the document and in bip-adaptive-blocksize/reference.py.
License: BSD-2-Clause.