Hyperledger fabric 结构对等内的链码verison不匹配

Hyperledger fabric 结构对等内的链码verison不匹配,hyperledger-fabric,Hyperledger Fabric,在这种情况下: 1,Peer X is down 2,Other peer perform upgrade of chaincode with success 3,Peer X is up, it will receive block and tx from the order/other peers, but it lacks of the newest version of chaincode. 4,In my try, if update the chaincode on peer X,

在这种情况下:

1,Peer X is down
2,Other peer perform upgrade of chaincode with success
3,Peer X is up, it will receive block and tx from the order/other peers, but it lacks of the newest version of chaincode.
4,In my try, if update the chaincode on peer X, it will result to mismatch of the version within peers

如何使所有对等方具有相同的链码验证?

您必须在所有背书方对等方中安装最新版本的链码。总是。准确地说,每个组织的管理员都应该这样做

在每个背书人对等机中安装它,并实例化/升级一次

通过比较,确保您在每个对等机中都有相同的版本:

md5sum/var/hyperledger/production/chaincodes/mychaincode.1.0

我是否可以删除对等方X的所有数据(分类账等),然后重新启动对等方X,打算从其他对等方/订单接收链码和发送,这是否可行?如果您清除分类账并重新启动,您的对等方(再次加入频道)将使分类账与频道同步,但它不会自行安装链码。所以这不是解决办法。您必须在每个背书人对等机中安装相同的链码(相同的名称、版本号和来源)。在安装之前更好地打包(和分发)链码,而不是从源代码处安装。因此,如果对等节点中的链码已经不匹配,如何从结构网络中删除对等节点X?进入链码与实例化链码不匹配的对等容器,删除
/var/hyperledger/production/chaincodes/mychaincode.1.0
,退出并安装正确的。或者在每个对等机上安装一个新版本并升级该版本。我尝试了上述方法,但升级失败,对等机X上出现MVCC_READ_冲突