fabric peers 中的链码版本不匹配

The mismatch of chaincode verison within fabric peers

在这种情况下:

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

如何让所有peer拥有相同版本的chaincode?

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

在每个背书节点中安装它 instantiate/upgrade 一次。

通过比较确保您在每个同行中都拥有相同的版本:

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