Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Regtest Consensus Forking Behavior Introduced in Bitcoin Core in May 2014
by
gmaxwell
on 19/05/2015, 17:36:14 UTC
⭐ Merited by ABCbits (2)
This was actually pointed out at the time the change was made; but it seemed silly to change regtest's minimum just to make it fit (or worse, to add a lot of additional complexity and another number type just to handle values which _cannot_ occur in Bitcoin). Somewhat similar to how the testnet 20-minute rule exposes weird behavior where if the penultimate block in the retargeting window is diff-1 the difficulty will just from whatever back to ~1: The tests intentionally break the system in order to make it easier to test, sometimes that has collateral damage; needless generality exposes its own risks-- e.g. the OpenSSL bignum code was wrong in a platform dependent way until fairly recently (and irritatingly, we spent months with that discovery embargoed)-- any use of it carries its own risks.