建议和反馈

请填写你的反馈内容

感谢您对链客的信任!

恭喜您填写完个人简历!链客专注于区块链职位连接,帮助您的投递更加精准高效,赶快去选择自己心仪的岗位吧!

推动中国区块链事业发展始终是我们坚定不移的梦——链客团队

问答 > 以太坊开发 > 问答详情

以太坊私链搭建,区块信息无法同步

  • 我在ubuntu环境中搭建了以太坊的私有链网络,将两个Geth节点连接在了一起,目前是新加入无法获取前面节点已经生成的区块数据,一直在刷屏提示错误:

    将创世区块信息文件genesis.json中:

    {

    "config": {

    "chainID":1024,

    "homesteadBlock": 0,

    "eip155Block": 0,

    "eip158Block": 0

    },

    "alloc": {},

    "coinbase":"0x0000000000000000000000000000000000000000",

    "difficulty": "0x400",

    "extraData": "0x0",

    "gasLimit": "0x2fefd8",

    "nonce": "0xdeadbeefdeadbeef",

    "mixhash":"0x0000000000000000000000000000000000000000000000000000000000000000",

    "parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000",

    "timestamp": "0x00"

    }

    两个节点都是使用上面的json文件启动节点:

    节点二通过如下的命令行添加节点一:

    geth --datadir data0 --networkid 15 --ipcdisable --port 61911 --rpcport 8101 --bootnodes "enode://22593a77841852c0b4593dcac679dcdf86c6bf014fb53ab1b79001be75ce780792dc7f0a5c96c236c5688e12ac11b996a14daa2cafb0147eaef8218594574015@10.251.44.137:61910" console

    目前节点一的信息为:

    net.peerCount
    1
    eth.blockNumber

    72

    但是节点二一直在刷评:

    WARN [04-18|17:52:56] Synchronisation failed, retrying err="state node a1bc87鈥6758e failed with all peers (1 tries, 1 peers)"
    INFO [04-18|17:53:06] Imported new block headers count=0 elapsed=1.787ms number=72 hash=416df6鈥9725f ignored=72
    INFO [04-18|17:53:06] Imported new block receipts count=0 elapsed=21.537碌s number=7 hash=eb64f0鈥?38ef2 size=0.00B ignored=7
    WARN [04-18|17:53:06] Node data write error err="state node a1bc87鈥6758e failed with all peers (1 tries, 1 peers)"
    WARN [04-18|17:53:06] Synchronisation failed, retrying err="state node a1bc87鈥6758e failed with all peers (1 tries, 1 peers)"
    INFO [04-18|17:53:16] Imported new block headers count=0 elapsed=2.393ms number=72 hash=416df6鈥9725f ignored=72
    INFO [04-18|17:53:16] Imported new block receipts count=0 elapsed=36.339碌s number=7 hash=eb64f0鈥?38ef2 size=0.00B ignored=7
    WARN [04-18|17:53:16] Node data write error err="state node a1bc87鈥6758e failed with all peers (1 tries, 1 peers)"
    WARN [04-18|17:53:16] Synchronisation failed, retrying err="state node a1bc87鈥6758e failed with all peers (1 tries, 1 peers)"
    INFO [04-18|17:53:26] Imported new block headers count=0 elapsed=2.170ms number=72 hash=416df6鈥9725f ignored=72
    INFO [04-18|17:53:26] Imported new block receipts count=0 elapsed=50.321碌s number=7 hash=eb64f0鈥?38ef2 size=0.00B ignored=7

    两个节点之间也是一会连接起来,一会中断,这块哪位大侠能指导一下,可能的原因是什么?万分感谢!

myself

2019-04-15

370

0

撰写答案

请先登陆或注册

0个回答

邀请

感谢您的善举,每一次解答会成为新人的灯塔,回答被采纳后获得20算力和相应的LK币奖励