Skip to content

Bug: CCaaS uses only the last chaincode #653

@dzikowski

Description

@dzikowski

In CCaaS setup eventually all chaincode requests end up calling the last CCaaS container, because the chaincode connection file (my-channel1_chaincode1_0.0.1.tar.gz) is overwritten. The chaincode connection file name should probably contain peer name.

More details: #644 (comment)

As a workaround in the current version you can use the following postGenerate hook:

  "hooks": {
    "postGenerate": "perl -i -pe 's/\\$CHAINCODE_LABEL\\.tar\\.gz/\\${CHAINCODE_LABEL}_\\${PEER_ADDRESS%:*}.tar.gz/g' \"./fablo-target/fabric-docker/scripts/chaincode-functions.sh\""
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions