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, it will result to mismatch of the version within peers
如何使所有对等点具有相同的链码版本?
解决方案
您必须在所有背书节点中安装最新版本的链码。总是。准确地说,每个组织的管理员都应该这样做。
将其安装在每个背书节点上并实例化/升级一次。
通过比较确保您在每个对等点中都有相同的版本:
md5sum /var/hyperledger/production/chaincodes/mychaincode.1.0
推荐阅读
- ejb - 如何在 weblogic-ejb-jar.xml 中设置 max-beans-in-cache 的值
- namespaces - Kubernetes - pod FailedScheduling 由于“没有与所有谓词匹配的可用节点:MatchInterPodAffinity (1)”。
- android - 服务不会在 Android Oreo 中停止
- ios - 为什么 UICollectionView 根本没有响应?
- android - 如何重用我的片段代码?
- java - 如何使用 intellij 中的 sonarlint 分析 src/test/java 文件夹中的测试用例
- python-3.x - openpyxl - 我如何在字符部分单元格上设置样式
- php - 从无 cookie 域中切断静态内容
- jquery - jQuery Github 站点
- typescript - 如何在我的云函数中获取对谷歌云存储桶的引用?