March 2019
Intermediate to advanced
636 pages
27h 50m
English
Now we are ready to carry out the upgrade process, which will require two steps:
The code to perform these steps can be found in middleware/upgrade-chaincode.js and simply involves calling functions we have already implemented (see Chapter 5, Exposing Network Assets and Transactions). The following code snippet shows what we need to do for installation:
var Constants = require('./constants.js'); var installCC = require('./install-chaincode.js'); Constants.networkConfig = './config_upgrade.json'; Constants.TRANSACTION_ENDORSEMENT_POLICY = Constants.ALL_FIVE_ORG_MEMBERS; ...Read now
Unlock full access