hyperledger fabric 的失败交易 "consistency Groups" 是什么?

what is "consistency Groups" on failure transactions of hyperledger frabric?

我已经为 hyperledger fabric 开发了一个链码,现在(我在环境中部署了新版本,它向我发送了这条消息:

Transaction failure. Exception: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: The proposal responses have 2 inconsistent groups with 0 that are invalid. Expected all to be consistent and none to be invalid..

你能描述一下错误显示的不一致组是什么吗?我正在搜索信息,但没有找到相关详细信息,所以我无法理解我在新版本上的交易发生了什么。

谢谢

您的背书政策似乎需要两个同行的背书。然而,同一交易提案的背书结果却是不同的。这基本上意味着您的链代码具有非确定性代码,这意味着使用相同参数调用相同的链代码会导致不同的响应。这就是为什么您有 2 个不一致的组。