March 2019
Intermediate to advanced
636 pages
27h 50m
English
For both the channel world state and the user keys and certificates for the respective organizations, we will use a file-based store, as specified in clientUtils.js:
var Constants = require('./constants.js');var tempdir = Constants.tempdir;module.exports.KVS = path.join(tempdir, 'hfc-test-kvs');module.exports.storePathForOrg = function(org) { return module.exports.KVS + '_' + org;};
In constants.js, tempdir is initialized as follows:
var tempdir = "../network/client-certs";
Alternatively, you can also set the storage location to lie in the temporary folder designated by your operating system using the os.tmpdir() function; you will just need to create a subfolder there(say <folder-name>.) On a typical Linux, system, this storage ...
Read now
Unlock full access