1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal: invalid genesis file: hex string has odd length

Discussion in 'Finance' started by Bumblebee, Oct 8, 2018.

  1. Bumblebee

    Bumblebee Guest

    I want to setup a private testnet. I followed the guide in:

    http://ethdocs.org/en/latest/network/test-networks.html

    With the following CustomGenesis.json:

    {
    "nonce": "0x0000000000000042", "timestamp": "0x0",
    "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "extraData": "0x0", "gasLimit": "0x8000000", "difficulty": "0x400",
    "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "coinbase": "0x3333333333333333333333333333333333333333", "alloc": { }
    }


    If I run the command

    geth --identity "MyNodeName" --rpc --rpcport "8080" --rpccorsdomain "*" --datadir "C:\chains\TestChain1" --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1999 init /path/to/CustomGenesis.json


    with my specific information I get the follwoing error message:

    Fatal: invalid genesis file: hex string has odd length


    What am I doing wrong?

    Login To add answer/comment
     

Share This Page