kshitijyelpale / blockchain-hyperledger-fabric-electronic-patient-records

GNU General Public License v3.0
49 stars 43 forks source link

dcy6q6 - clear wallet before enrolling admins and users #31

Closed kshitijyelpale closed 3 years ago

kshitijyelpale commented 3 years ago

(+) added new method to clearWallet files in initServer.js

kshitijyelpale commented 3 years ago

Task linked: CU-dcy6q6 Clear wallet before enrolling admin and users

sjathin commented 3 years ago

I think it would be better to also add this logic to the network.sh file for networkDown. So when the network goes down the wallet is deleted.

For the reason being, during the networkDown all the temporary files are deleted such as certificates, docker instances etc.

kshitijyelpale commented 3 years ago

I think it would be better to also add this logic to the network.sh file for networkDown. So when the network goes down the wallet is deleted.

For the reason being, during the networkDown all the temporary files are deleted such as certificates, docker instances etc.

Okay, I'll also add there in down method.

kshitijyelpale commented 3 years ago

I removed the code from initServer.js file, now there is no need of that. Even if a user has not stopped the network and trying to start the network again, he/she needs to down first anyhow.