https://hlf.readthedocs.io/en/latest/commands/peerlifecycle.html
Chaincode Management Page
APIsĀ
- Get chaincode information list
- Submit chaincode
Information List UI
Name | Label | Version | PackageId | Operation |
---|---|---|---|---|
Cc1 | V1 | sha2sum | Install | Approve | Commit | Delete (if chaincode not used yet) | |
Cc2 | V1 | sha2sum | Install | Approve | Commit | Delete (if chaincode not used yet) | |
Submit Chaincode UI (if let users upload the cc package, then no need this step)
Chaincode Name: | |
Description: | |
Version: | |
Choose File: | |
Chaincode language: | |
Chaincode hash: (maybe calculated by backend depending on performance) |
Chaincode Installation Page
APIs
- Get nodes of the current organization
- Get chaincode installation status of each node
- Submit requests to install chaincode
Install Chaincode UI
Choose the node to install chaincode (current org) |
---|
Approvement Page
APIs
- Get all orgs' approvement status
- Approve current org's chaincode
Approve Chaincode UI
Choose Channel | |
---|---|
Org | Approved/Not Approved |
Org1 | Approved |
Org2 | Not Approved |
Org3(Current Org) | Not Approved (A clickable link/button) |
Approving current Org's chaincode doesn't require a page. After clicking the link, it prompts a confirmation window, sends a "approve" request to backend if confirmed.
The backend checks if approvement is successful or not and returns the result to frontend (it's better to include failure info). Frontend then prompts the response.