我正在尝试为以太坊区块链创建创世块,但 Windows 命令提示符显示致命错误。
Genesis文件的代码如下所述-
{
“config”:{
“chainId”:777,
“homesteadBlock”:0,
“eip155Block”:0,
“eip158Block”:0
},
“difficulty”:”0x400″,
“gasLimit”:”0x8000000″,
“alloc”:{}
}
“需要 genesis.json 文件作为唯一参数”是什么意思?
我可能正在遵循与您相同的教程,这就是我的做法:
"C:\path with spaces\file.json"
init
之后只能有一个参数,所以将另一个标志放在前面。你的结果应该是这样的:
geth --identity "MyBlockchain" --datadir C:\Users\hodit\Downloads\Ethereum\MyPrivateChain \
init "D:\json file\CustomGenesis.json"
请注意,它也适用于相对路径。