y00303034 2018-04-18 10:00 采纳率: 100%
浏览 3182
已采纳

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

我在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

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

  • 写回答

1条回答

  • dabocaiqq 2018-04-18 11:52
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥50 汇编语言除法溢出问题
  • ¥65 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波