Invalid genesis file


Hi,How to initialize genesis block and create enode. I’m getting error when I try the command geth --datadir pnet init genesis-block.json
Fatal: invalid genesis file: json: cannot unmarshal hex string without 0x prefix into Go struct field Genesis.extraData of type hexutil.Bytes


I’m also getting the same error


Hi, we’ll look into this issue shortly.


Hi, while it is not required to manually set the genesis block, If you need a custom genesis block, you can edit
and run strato-getting-started with
genesisBlock=$(< genesis-block.json) ./strato