美文网首页
开创以太坊私有链

开创以太坊私有链

作者: 暗夜巡林 | 来源:发表于2018-11-21 20:08 被阅读0次

    1.编写json文件

    {

      "config": {

            "chainId": 15,

            "homesteadBlock": 0,

            "eip155Block": 0,

            "eip158Block": 0

        },

        "coinbase" : "0x0000000000000000000000000000000000000000",

        "difficulty" : "0x40000",

        "extraData" : "",

        "gasLimit" : "0xffffffff",

        "nonce" : "0x0000000000000042",

        "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",

        "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",

        "timestamp" : "0x00",

        "alloc": { }

    }

    2.使用命令

    geth init ./adam.json --datadir "./chain"

    运行结果

    相关文章

      网友评论

          本文标题:开创以太坊私有链

          本文链接:https://www.haomeiwen.com/subject/foceaftx.html