可以在单个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)"
发布于 2018-10-25 10:16:51
您可以在同一台PC上使用单独的--datadir和差异--port来完成这一任务。
发布于 2018-10-25 11:41:10
你为什么不在你的电脑上启动另一个虚拟机并下载到那里呢?这样你就可以保持东西“更干净”。
https://ethereum.stackexchange.com/questions/61158
复制相似问题