Use Advanced Deployment

(Hyperledger Fabric v1.4.7) Use the advanced deployment option to specify the parameters required to deploy a chaincode into a production environment. For example, you’ll specify which peers to install the chaincode on and the endorsement policy to use.

With the advanced deployment wizard, you’ll install the chaincode on the peers you select.
Note the following information:
You must be an administrator to perform this task.
  1. Go to the console and select the Chaincodes tab.
  2. In the Chaincodes tab, click Deploy a New Chaincode.
    The Deploy Chaincode page is displayed.
  3. Click Advanced Deployment.
    The Deploy Chaincode (Advanced) Step 1 of 3: Install page is displayed.
  4. In the Chaincode Name field, enter a unique name for the chaincode. In the Version field, enter the chaincode’s version number.
    The Oracle Blockchain Platform chaincode name and version requirements are different than the Hyperledger Fabric requirements. You must use the Oracle Blockchain Platform naming requirements. Use these guidelines when naming the chaincode:
    • Use ASCII alphanumeric characters, ('') quotes, dashes (-), and underscores (_).
    • The name must start and end only with ASCII alphanumeric characters. For example, you can't use names like _mychaincode or mychaincode_.
    • Dashes (-) and underscores (_) must be followed with ASCII alphanumeric characters. For example, you can't use names like my--chaincode or my-_chaincode.
    • The name must be 1 to 64 characters long.
    • A chaincode version can contain a period (.).
  5. Select one or more network peers to install the chaincode onto. To provide high availability, Oracle suggests that you choose the appropriate number of peers from each partition. Also, the peers you choose must be joined to the channel that you’ll instantiate the chaincode on.
  6. Click the Chaincode Source field and browse for the chaincode ZIP file to upload and deploy. Click Next.
    The chaincode is installed and the Deploy Chaincode (Advanced) Step 2 of 3: Instantiate page is displayed.
  7. Decide if you want to instantiate the chaincode now or later.
    • Click Close to close the wizard and instantiate later.
    • To instantiate now, select the channel to instantiate the chaincode on and the peers to instantiate the chaincode to. If required, enter initial parameters, an endorsement policy, transient map, and private data collections. Note the following information:
      • Instantiation compiles, builds, and initializes the chaincode on the peers.
      • If you leave the endorsement policy blank, then Oracle Blockchain Platform uses the default endorsement policy. The default endorsement policy gets an endorsement from any peer on the network.
      • When instantiation is complete, the peers are able to accept chaincode invocations and can endorse transactions.
      Click Next.
    The chaincode is instantiated.