Code for generating new genesis block