最近签署的Clique POA必须等待其他人

qar*_*eal 5 ethereum go-ethereum

这是我的第一次,希望有人能理解我的语法和问题。我使用puppeth创建了2个节点,并为我的私人以太坊选择了Clique。两个节点都是密封器(使用clique.getSigners()在两个节点上进行验证),并且两个节点都可以将对方视为对等方(使用admin.peers进行验证)。当我开始使用下面的代码挖掘两个节点时,两个节点最近都停留在“已签名”状态,必须等待其他节点

geth personal.unlockAccount(eth.coinbase)

geth eth.defaultAccount = eth.coinbase

geth miner.start()

两个节点的屏幕截图

以下是创建节点1的步骤(已经使用puppeth创建了创世记)

  1. geth --datadir“文件夹” init“ genesis.json”
  2. geth --datadir“文件夹” --networkid [提供的网络] –nodiscover
  3. 单独的控制台-Geth附加ipc:\。\ pipe \ geth.ipc
  4. admin.addPeer(节点2的enode)

以下是创建节点2的步骤(已经使用puppeth创建了创世记)

  1. geth --datadir“文件夹” init“ genesis.json”
  2. geth --datadir“文件夹” --networkid [提供的网络] –nodiscover
  3. 单独的控制台-Geth附加ipc:\。\ pipe \ geth.ipc
  4. 获取enode admin.nodeInfo.enode并在节点1中使用admin.addPeer

检查签名者-clique.getSigners-两个帐户都出现

检查两个节点的对等节点-admin.peers-都可以

然后都使用下面的代码

geth personal.unlockAccount(eth.coinbase)

geth eth.defaultAccount = eth.coinbase

geth miner.start()