Fabric对等点中的链码版本不匹配 [英] The mismatch of chaincode verison within fabric peers

查看:62
本文介绍了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, it will result to mismatch of the version within peers

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

How to make all peer have the same verison of chaincode?

推荐答案

您必须在所有背书对等方中安装链码的最新版本.总是.每个组织的管理员都应该做到这一点.

You must install the last version of the chaincode in all the endorser peers. Always. The admin of each organization should do that, to be accurate.

将其安装在每个背书对等方中,并实例化/升级一次.

Install it in every endorser peer and instantiate/upgrade once.

通过比较,确保每个对等方都具有相同版本:

Be sure that you have the same version in every peer by comparing:

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

这篇关于Fabric对等点中的链码版本不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆