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

我在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个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问