Invalid genesis file


#1

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


#2

I’m also getting the same error


#3

Hi, we’ll look into this issue shortly.


#4

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