Hi Guest

More contents, please log on!

Bitmere.com 区块链技术 Content

搭建私有链遇到问题

浩南哥
36 0 0
按着这个教程撘私有链
结果第一步就报错啦
这是
genesis.json:

  1. {
  2.   "coinbase"   : "0x0000000000000000000000000000000000000000",
  3.   "difficulty" : "0x400",
  4.   "extraData"  : "0x0",
  5.   "gasLimit"   : "0x2fefd8",
  6.   "nonce"      : "0xdeadbeefdeadbeef",
  7.   "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  8.   "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  9.   "timestamp"  : "0x00",
  10.   "alloc"      : {}
  11. }
Copy the Code


然而启动的时候:
wangyideMacBook-Pro:eth vincent$  geth --datadir data0 init genesis.json
Fatal: invalid genesis file: json: cannot unmarshal hex string of odd length into Go struct field Genesis.extraData of type hexutil.Bytes
wangyideMacBook-Pro:eth vincent$
哪位大神能帮帮我?
BitMere.com is Information release platform,just provides information storage space services.
The opinions expressed are solely those of the author,Does not constitute advice, please treat with caution.
You have to log in before you can reply Login | 立即注册

Points Rules

Write the first review

浩南哥 小学生
  • Follow

    0

  • Following

    0

  • Articles

    2

Promoted