Fixed testnet crash by merging 1.4.1 genesis block generation code.