The coinbase scriptSig in this unit test has several issues:
- The BIP34 height is not the "first item" as required (See https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki#specification)
- It uses the wrong encoding ( See https://github.com/bitcoin/bitcoin/blob/da69d9965a112c6421fce5649b5a18beb7513526/src/validation.cpp#L3250 )
- It uses the wrong height (off by one)
While BIP34 isn't currently enforced in this unit test, this should be fixed to avoid confusion and to promote self-consistency.
The change obviously requires new proof of work (BLOCKINFO).
Also change the block version from 1 to VERSIONBITS_TOP_BITS, because this test shouldn't care about the block version and bumping it is required for other changes.