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

前端 未结 4 557
攒了一身酷
攒了一身酷 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

    You need to have the exact copy of chaincode in all of your peers.

    Try :

    docker exec cli peer chaincode list --installed 
    

    (Note that the cli container name may be different in yours)

    and check the Id in both the servers. If they do not match that means you have a different chaincode file.

    Just try copying the whole chaincode folder to another machine at the same location.

提交回复
热议问题