首页 > 解决方案 > 结构对等体中链码版本的不匹配

问题描述

在这个情况下:

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

如何使所有对等点具有相同的链码版本?

标签: hyperledger-fabric

解决方案


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

将其安装在每个背书节点上并实例化/升级一次。

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

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

推荐阅读