繁体   English   中英

JSON无法写入创世纪块:无效字符'\\\\'寻找对象密钥字符串的开头

[英]JSON failed to write genesis block: invalid character '\\' looking for beginning of object key string

我试图建立的成因,并同时做so.After我inputed GETH我曾经遇到过很多错误init genesis.json同一个目录的终端上,但我得到了这一点:

Caros-MacBook-Pro:testcmy caro$ geth init genesis.json
I0223 18:52:32.817358 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/caro/Library/Ethereum/geth/chaindata
I0223 18:52:32.976868 ethdb/database.go:176] closed db:/Users/caro/Library/Ethereum/geth/chaindata
I0223 18:52:32.976933 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/caro/Library/Ethereum/geth/chaindata
Fatal: failed to write genesis block: invalid character '\\' looking for beginning of object key string

我提到了这个网站: http : //hypernephelist.com/2016/05/30/deploying-a-private-Ethereum-blockchain.html ,我按照步骤进行操作。

.json如下:

{
    "nonce": "0x0000000000000042",

"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "difficulty": "0x4000",

 "alloc": {},

"coinbase": "0x0000000000000000000000000000000000000000",

"timestamp": "0x00",

 "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",

 "extraData": "Custom Ethereum Genesis Block",

 "gasLimit": "0xffffffff"
}

那么,神秘的无效\\在哪里? json中没有\\! 它出什么问题了?

可能您正在使用添加了一些额外字符的文本编辑器。 尝试使用nano或任何类似的东西

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM