首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在单台PC上连接到专用网络的两个节点:节点数据写入错误.Synchronisation失败

在单台PC上连接到专用网络的两个节点:节点数据写入错误.Synchronisation失败
EN

Ethereum用户
提问于 2018-10-25 10:10:05
回答 2查看 567关注 0票数 0

可以在单个PC上创建两个实例吗?两者都是连接私人区块链的吗?

当我将一个节点连接到私有块链时,它必须通过下载所有块到最新的one.Is来与块链同步--这可能在同一台PC中的第二个节点实例上执行吗?

若否,原因为何?

当我试图运行两个实例时,我得到了以下错误。

第一节点geth --identity "TestNode1" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <data-path-1> --port "30303" --rpcapi db,eth,net,web3,personal,miner --networkid 987 console 2>> logfile_1

第二节点geth --identity "TestNode2" --rpcport "8545" --rpcaddr "xxx.xxx.xx.xx" --ipcdisable --rpccorsdomain "*" --datadir <data-path-2> --port "30304" --rpcapi db,eth,net,web3,personal,miner --networkid 987 console 2>> logfile_2

错误:INFO [10-26|09:30:33.099] Block synchronisation started WARN [10-26|09:30:33.107] Node data write error err="state node 255a57…77b997 failed with all peers (1 tries, 1 peers)" WARN [10-26|09:30:33.107] Synchronisation failed, retrying err="state node 255a57…77b997 failed with all peers (1 tries, 1 peers)"

EN

回答 2

Ethereum用户

发布于 2018-10-25 10:16:51

您可以在同一台PC上使用单独的--datadir和差异--port来完成这一任务。

票数 0
EN

Ethereum用户

发布于 2018-10-25 11:41:10

你为什么不在你的电脑上启动另一个虚拟机并下载到那里呢?这样你就可以保持东西“更干净”。

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/61158

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档