hyperledger fabric - chaincode fingerprint mismatch data mismatch

Error: Error endorsing query: rpc error: code = Unknown desc = Error executing chaincode: Could not get deployment transaction from LSCC for mycc:1.0 - Get ChaincodeDeploymentSpec for mycc/mychannel from LSCC error: chaincode fingerprint mismatch data mismatch -

从以上报错内容,直译过来就是合约代码指纹不匹配。

进入cli容器:

docker exec -it cli bash

查询当前所安装的链码

peer chaincode list --installed
Get installed chaincodes on peer:
Name: mychannel, Version: 1.0, Path: github.com/hyperledger/fabric/aberic/chaincode/go/chaincode_example02, Id: a77f5b650cd1a11a3402f52a0ad2b3961e1763d62ff1109bc360feb535ba9026
2018-12-24 01:12:32.768 UTC [main] main -> INFO 005 Exiting.....

可以看出,链码一共4个因素:

name:安装时指定的链码名称  -n参数

Version:安装时指定的版本  -v参数

<

你可能感兴趣的:(区块链技术,fabric,fingerprint)