[{ "difficulty" : "0x20000", "extraData" : "", "gasLimit" : "0x8000000", "alloc": {}, "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 } }]
this is my genesis.json file & as mention chainid is 15.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityYou are missing double dash in front of the datadir parameter. It should be geth --datadir=<YOUR_DATA_DIR> console
. So you are reading from other directory.
You have to use the same --datadir
when creating your private blockchain with geth --datadir=<YOUR_DATA_DIR> init <YOUR_GENESIS_FILE>
.