Code for generating genesis.dat