'Chaincode fingerprint does not match' when querying from other peer

前端 未结 4 571
攒了一身酷
攒了一身酷 2021-01-24 01:52

I set up a network on several servers. On one of the servers, the compiled chaincode is consistently different from the chaincode on other servers, resulting in the message:

4条回答
  •  野性不改
    2021-01-24 02:13

    I faced the same issue and the reason for it is I had an extra file in one of the two servers. First, let's understand how a Chaincode fingerprint is calculated. It is the combination of srcPath(whole content of chaincode folder ), ID and version. All servers should have the same chaincode i.e even an extra file will change the hash of chaincode.

提交回复
热议问题