Skip to content

Commit

Permalink
[FAB-7511] clear crypto material after clearing network
Browse files Browse the repository at this point in the history
Crypto materal is cleared after every re-start of a new network

Change-Id: I01c919109401428de1252695930f42e73eb3f795
Signed-off-by: ratnakar <asara.ratnakar@gmail.com>
  • Loading branch information
asararatnakar committed Dec 19, 2017
1 parent 54ffa5f commit e848216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions balance-transfer/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ else
file = util.format(file, '');
// indicate to the application where the setup file is located so it able
// to have the hfc load it to initalize the fabric client instance
hfc.setConfigSetting('network-connection-profile-path',path.join(__dirname, 'app', '../artifacts',file));
hfc.setConfigSetting('Org1-connection-profile-path',path.join(__dirname, 'app', '../artifacts','org1.yaml'));
hfc.setConfigSetting('Org2-connection-profile-path',path.join(__dirname, 'app', '../artifacts','org2.yaml'));
hfc.setConfigSetting('network-connection-profile-path',path.join(__dirname, 'artifacts' ,file));
hfc.setConfigSetting('Org1-connection-profile-path',path.join(__dirname, 'artifacts', 'org1.yaml'));
hfc.setConfigSetting('Org2-connection-profile-path',path.join(__dirname, 'artifacts', 'org2.yaml'));
// some other settings the application might need to know
hfc.addConfigFile(path.join(__dirname, 'config.json'));
8 changes: 3 additions & 5 deletions balance-transfer/runApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,16 @@ function dkrm(){
function restartNetwork() {
echo

#teardown the network and clean the containers and intermediate images
cd artifacts
docker-compose down
#teardown the network and clean the containers and intermediate images
docker-compose -f ./artifacts/docker-compose.yaml down
dkcl
dkrm

#Cleanup the stores
rm -rf ./fabric-client-kv-org*

#Start the network
docker-compose up -d
cd -
docker-compose -f ./artifacts/docker-compose.yaml up -d
echo
}

Expand Down

0 comments on commit e848216

Please sign in to comment.