According to Rusty Russel, you need to mine 432 blocks to activate segwit on regtest. Why this specific blockheight?


1 Answer 1


Note that since 0.16, Segwit is always active on regtest from the genesis block.

Prior to 0.16, Segwit on regtest is defined to have a start time of 0 and can be activated through the BIP 9 versionbits mechanism. In BIP 9, the genesis block always has the state of DEFINED, which means that the signaling period beginning with the genesis block is DEFINED and any signaling in that period does not count for segwit.

Segwit would become STARTED in the second signaling period and only then would signaling blocks be counted. If the threshold is reached, then it will become LOCKED_IN during the third signaling period. Once the third signaling period concludes, Segwit will be active. So under ideal circumstances where all blocks signal for Segwit, 3 signaling periods are needed for Segwit to become active.

In Regtest, each signaling period is 144 blocks. 144 * 3 = 432 blocks need to be mined for Segwit to become active.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.